Fade out additive animation

Once i have faded an additive animation over another, how do i fade out that animation so that it returns to normal.

So lets say we have a walk cycle playing and we want to add a twist animation while our character turns. I’ve got it working but when the character stops turning the twist animation is stuck at the last frame.

Do i have to manage the blend weight manually for that?

Maybe i have to make another blank animation that i can then crossFade into the get it back.

Not sure on this one.

You can fade out any animation over time using Animation.Blend, just blend to a target weight of 0.0, so to fade it out over 0.3 of a second you’d use :

animation.Blend("animName", 0.0, 0.3);

The only issue is the animation will be left running at zero weight. If it matters you’ll have to stop/disable the animation yourself once the blend is done.

Sweet ill give it a try. Thanks.