- Home /
Create Animator Controller via Editor Script?
Hello,
I'm trying to use an editor script to create myself a button that will instantiate an object and set it up the way I'd like. I'm adding an Animator component to the object, and would like to create a new Animator Controller for the object. Is this possible?
Thanks!
I also need this. Seems Unity doesn't auto-create such assets, so I want to make an editor 'asset import' script which takes care of it for me.
Answer by SpiralConDave · May 26, 2015 at 07:41 PM
Above link is dead, but I did find precisely what I needed, again, in the Scripting Manual and I love unity inc! http://docs.unity3d.com/ScriptReference/Animations.AnimatorController.html
great link with example code! Now I need to automate creating the animations from the spritesheet...
Thank you! Years later, your answer was still the first one I found that was actually (or still) useful.
Your answer
