S
S
Sergey Panov2018-07-27 12:32:54
Unity
Sergey Panov, 2018-07-27 12:32:54

How to reset Animator to default state?

Good afternoon friends. An animator hangs on the object and plays animations.
At a certain point, the object becomes inactive and the animation remains at a certain stage.
How to make the animation get into its default (initial) state when the object is activated?
Please advise, thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pragma Games, 2021-06-06
@PragmaGames

So many years later... )
Animator .keepAnimatorControllerStateOnDisable = false;
But I think in your case just the opposite will help
.keepAnimatorControllerStateOnDisable = true;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question