I have a function added for onAnimationEndObservable.addOnce(() => {})
I found this function always execute, even I switch to another animation group to play or stop it,
Is there any way to stop the onAnimationEndObservable.addOnce execute?
I’m a bit confused as to what you wanted to happen.
From the Playground, everything looks to be as I would expect? The observable callback is triggered only once. If you remove it before it can be triggered (the animation ends), it will not be triggered. If you remove it after the animation has ended, the callback will already be queued and run regardless since that’s how JavaScript works.