- Home /
Changing Animator State during run-time?
Hi all,
I'm trying to figure out how to change the animator state during run-time via scripting.
I am not interested in any blending or transitions, simple switching between states and start each animation from the beginning. If necessary I can reload the scene in between, and I have about 200 animator states.
So far, I've identified the following functions that can achieve this during run-time, but they are limited to the Unity Editor:
UnityEditorInternal.AnimatorController
UnityEditorInternal.StateMachine
UnityEditorInternal.State
Any advice on how this can be achieved without the above (i.e. for a build)?
Thanks for your time.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613150741im_/https://answers.unity.com/themes/thub/images/avi.jpg)