I
I
i__egor2020-01-20 18:57:17
Unity
i__egor, 2020-01-20 18:57:17

How to reset animation in Animation?

While the animation is playing, it is possible that the object will be disabled. Then it will be enabled. Animation stuck on that frame when the object was disabled. How can I tell if the animation hasn't finished yet? (go.GetComponent().isPlaying - shows what is playing even though it is paused) Is it possible to reset the animation to the beginning?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DanielMcRon, 2020-01-20
@DanielMcRon

Through the animator, view the action of the animation, perhaps when a pause is made, the animation, as obvious as it sounds, is not reset. I'm not a pro in animation yet, but I think if this is observed there, then you can come up with something, unsubscribe
Changed: https://docs.unity3d.com/ScriptReference/Animator....
You can start with the path you need, at least at first

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question