- Home /
Mecanim Runtime Controller is Private!
Read your post and have been having exactly the same issue on my project regarding working with the Mecanim Animator Controller component. I want to be able to assign the controller at runtime but its not public. So this is definetly an oversight of unity dev team which needs correcting.
What i did manage to do successfully was to simply make a prefab with the controller manualy assigned and then to use Resources.Load to instance it into the game scene correctly. This does actually work. What i am having issues with doing is making it load from an Asset Bundle which seems to not load the Controller. In fact the Build Pipeline does not even create the dependency with the Controller when building the unity3d file.
This has been a massive minus on mecanim so far since any professional development will require runtime script access to the controller property which is not public.
GXMark
Answer by Hannibalov · Mar 14, 2013 at 04:41 PM
download 4.1
" $$anonymous$$ecanim: Can now change AnimatorController at runtime. "
Answer by rocki · Nov 28, 2012 at 05:29 AM
I have the same problem. If Unity is going to phase out the old animation system and Mecanim will be the animation system moving forward, then please allow us developers to get script access to the Controller. Mecanim is not yet Professional enough.
Answer by BatManz · Nov 29, 2012 at 07:46 AM
vote from me against only 1 animation system, which is super proprietary, and not yet in final state.
Answer by GXMark · Nov 29, 2012 at 09:53 AM
When you sign up with Unity it is by nature propriatory. Usually requests get put in and i'm sure this one will. However there is an undocumented hook into script based controller assignment. Download character workshop 2.0 demonstrates how to do this. www.digitech-innovations.com
Your answer
Follow this Question
Related Questions
Mecanim Runtime Controller is Private! 0 Answers
Skills controlled by animation (event callbacks and parameters) 0 Answers
Does anyone have an example of an animator with diagnol locomotion? 0 Answers
Get list of parameters of an AnimatorController 3 Answers
Javascript to control parameters of animator controller 3 Answers