- Home /
Question by
Darkworth · Mar 06, 2013 at 04:38 PM ·
animationanimatorcontrollermecanim
Can the mecanim animators Controller var be set in code?
I have not see any way to set the animators animation controller (Controller var) in code anywhere, but wanted to ask if anyone had found a way to do so just to be sure.
A project I am working on would really benefit from the ability to do so but so far it looks like this is not possible.
Just looking for confirmation one way or the other.
Thanks
Comment
Answer by Kwaung · Mar 29, 2013 at 07:11 PM
Never test it but this could be what you want. http://docs.unity3d.com/Documentation/ScriptReference/Animator-runtimeAnimatorController.html