- Home /
How do I play my animations w. Mechanim?
This question is very simple. I'm very familiar with the animation component(maybe too familiar to understand mechanim?). But since mechanim should be better, I would like to try it out. Maybe you guys can help me translate this:
gameObject.animation.Play("Walk");
Into mechanim-friendly code?
-thanks :)
Answer by KingKongFu · Jan 17, 2013 at 07:19 PM
Here you go mate this should help you set things up. It helped me http://www.youtube.com/watch?v=Xx21y9eJq1U
Good luck, I really hate that they added a new method for animation but it does look a lot more useful than baking in animation for each model.
Awesome. Thanks. But do you know if there's a way to use the old system? I have these very simple animations. And I believe it's a bit overkill to use mechanim on an NPC that just stands still?
Oh then that's easy I had the same problem the other day.
What you want to do is go to the model in the project pane then select the rig tab set the animation type to Legacy and the Generation to Store Root New.
Then in the animation tab you can set it up like you would normally do it.
Your answer
Follow this Question
Related Questions
Using Legacy Assets with Mecanim/Animator? 0 Answers
How can I get the legnth of an animation? (Mechanim Animator/C#) 2 Answers
Animation doesn't play 1 Answer
Trouble replacing a mesh on a pre-existing model 0 Answers
2D Animation does not start 1 Answer