x


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.

more ▼

asked Mar 12 '12 at 01:06 AM

patch24 gravatar image

patch24
1 1 1 2

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Mar 12 '12 at 04:28 AM

Owen Reynolds gravatar image

Owen Reynolds
11.5k 1 7 45

(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered Mar 12 '12 at 09:36 PM

patch24 gravatar image

patch24
1 1 1 2

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3802
x83
x31

asked: Mar 12 '12 at 01:06 AM

Seen: 784 times

Last Updated: Mar 12 '12 at 09:36 PM