- Home /
Changing Mechanim's Blendtree Interpolation
From Unity's Docs: http://docs.unity3d.com/Manual/class-BlendTree.html
The blending between animations is handled using linear interpolation (ie, the amount of each animation is an average of the separate animations weighted by the blending parameter).
My question is, is there a way to change this linear transition between animations in blendtrees to something like Ease-In/Out interpolation? I'm trying to achieve a smoother blend between single frame animations, see below.
Any help greatly appreciated!! :)
Answer by domjon · Jul 13, 2014 at 12:54 AM
Put blend parameter through an evaluation curve before sending it to the animator controller.
animator.SetFloat ("param", curve.Evaluate(param));
Your answer
![](https://koobas.hobune.stream/wayback/20220613153627im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why isn't my gun showing up when I play in maximised mode? (Mechanim Animator) 1 Answer
Get weird issue when change from Mechanim -> Ragdoll 0 Answers
Can animation clips be swapped out of the animator override controller in runtime? 1 Answer
Three Dimensional Blendtree? 1 Answer
Did Animator change how it writes properties since Unity 5.5? 1 Answer