Hi,
I am having trouble with animations. I can easily play it but I am not sure how to check if the animation has finished playing. Is there a way to check in my playground?
Hi,
I am having trouble with animations. I can easily play it but I am not sure how to check if the animation has finished playing. Is there a way to check in my playground?
you can use the last function parameter as a callback when animation ends: https://www.babylonjs-playground.com/#1GSCZY#1
Thank you. Can I use it outside the function? That is after addButton("Play", function () {});
?
You can only use it where you launch the animation. So if the animation is inside the addbutton function, sure else I do not see how.