- Home /
Is it currently possible to do a complete Mecanim setup via script?
I know that UT has said that they intend to allow that at some point, and I know that at least a portion of it is available via the scripting API, however I don't know if it's possible to do EVERYTHING via script.
I've been poking a little bit at it, and I have so far been able to create an Animator. I see that it requires an AnimatorController and an Avatar as well, and in my code I tried doing a simple "new Avatar()" line and assigning it to the Animator's avatar property, but when I run the code, the inspector doesn't actually show anything assigned to the avatar property. The documentation says that using that property isn't fully supported, so I guess I'm not that surprised. I haven't figured out how to properly instantiate an AnimatorController yet either, so that I can assign that to the Animator.
Just wondering if I'm trying to do something that isn't possible yet, or if I'm just missing something here...
Answer by drizztmainsword · Jun 17, 2013 at 01:10 AM
At the moment, no. That feature is coming in 4.2.
Your answer
Follow this Question
Related Questions
Mecanim deltaPosition is increased with more avatars 1 Answer
Mecanim - pause animation layer 1 Answer
No Avatar for Legacy rigs... Mecanim fails? 0 Answers
How to use AvatarBuilder.BuildHumanAvatar? 3 Answers
Reusing animations 0 Answers