- Home /
Multiple Animation States using a single clip?
Hi, I was wondering if anyone has advice on how to set up a single animation clip with multiple AnimationStates? I would like to have one state using a mixing transform, and one state without it. Right now I can duplicate an animation clip and add it to the list at run time, but it doesn't honor my new animation state changes....(i.e. one with a mixing transform and one without.) Otherwise, I'll just have to duplicate the animation in the editor and create a new anim state that way....but it seems to be a bit less ideal when it comes to making changes on the original animation. thanks.
Answer by Owen-Reynolds · Mar 12, 2012 at 04:28 AM
Duplicating in the editor isn't bad. Just use Split and add "walk" and "walkWMixing", reusing the same frames. Hardly uses any extra space at all.
Answer by patch24 · Mar 12, 2012 at 09:36 PM
I found a post (link below) that includes an editor script that will copy over animation curves from your original imported animation onto your duplicate. You just have to be sure to rename your duplicated animation with a "_copy" appended to it. So, lack of space savings aside, at least you can still make changes to your original animation and then use this script to copy over the updated anim curves. The other thing you get is that the duplicated anim is not write protected and you can use events etc with it. Thanks Rune for the script!
http://answers.unity3d.com/questions/8172/how-to-add-new-curves-or-animation-events-to-an-im.html
Your answer
Follow this Question
Related Questions
[Solved I think...] Sprite Animation Question 0 Answers
Get list of animation clips 1 Answer
Running animation until a certain time/frame 0 Answers
Problem with animations, How to blend them?? 0 Answers
walk/idle animation clip 1 Answer