- Home /
How to nest Animation file in an Animation Controller?
When I click auto generate animation for uGUI I get this animation controller which I think is nice because it keeps the animation file it uses in places.
I wanted to do this for my own animation controller as well. How can I do that? Because just dragging animation file into controller file does not work.
Answer by Baste · Apr 07, 2015 at 08:59 AM
That is probably done using the AssetDatabase - specifically, AssetDatabase.AddObjectToAsset. Remember that if you nest assets like that, you'll have to import the asset again before you can see the changes in the inspector - use AssetDatabase.ImportAsset to do that.
Your answer
Follow this Question
Related Questions
Trouble using root motion. 0 Answers
Why isn't my gun showing up when I play in maximised mode? (Mechanim Animator) 1 Answer
Did Animator change how it writes properties since Unity 5.5? 1 Answer
Get weird issue when change from Mechanim -> Ragdoll 0 Answers
Can animation clips be swapped out of the animator override controller in runtime? 1 Answer