- Home /
Change the Animation Clip of a Mecanim State
I'm making an RPG that each character should have a lot of skills, and each skill have different corresponded animation.
Ideally I should store the AnimationClip as a variable in each Skill class, and set only one state in the Animator called "Using Skill". When I use a skill, the clip inside "Using Skill" state should change corresponding with the current skill. However, I can't find a way to set the "Motion" property of a Animation State using script.
Is it possible to achieve this in Mecanim? (Without making tons of state)
Or should I use legacy animation instead?
Your answer
Follow this Question
Related Questions
Mecanim - changing animation clip speed, through script? 4 Answers
Animation (Legacy) vs Animator (New). 5 Answers
Mecanim transition condition can't have both bool and trigger? 0 Answers
Possible to play single clips using Mecanim? 0 Answers
How do I make the transition between two states in the "Animator" happen instantly? 3 Answers