Animate from end frame of one animation to end frame of another Unity3d/C#

Posted by Timothy Williams on Game Development See other posts from Game Development or by Timothy Williams
Published on 2014-06-10T16:33:48Z Indexed on 2014/06/10 21:49 UTC
Read the original article Hit count: 285

Filed under:
|
|

So I have two legacy FBX animations; Animation A and Animation B.

What I'm looking to do is to be able to fade from A to B regardless of the current frame A is on.

Using animation.CrossFade() will play A in reverse until it reaches frame 0, then play B forward.

What I'm looking to do is blend from the current frame of A to the end frame of B. Probably via some sort of lerp between the facial position in A and the facial position in the last frame of B.

Does anyone know how I might be able to accomplish this? Either via a built in function or potentially lerping of some sort?

© Game Development or respective owner

Related posts about c#

Related posts about unity