Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: knowhere on October 04, 2011, 07:35:05 PM
-
Hey everyone...
I'm trying to puzzle out how to dynamically blend between 2 specific animations at set points in the animations.
My setup: I have 2 sliders controlling the position of two animations on one object. When I scrub the slider on one, it progresses through animation one, and likewise slider two scrubs through animation 2. Is there a way to make it so that when I push both sliders, it progresses and blends the two animations?
-
Does this help ?
http://unity3d.com/support/documentation/ScriptReference/AnimationState.AddMixingTransform.html
-
Sorry for bumping this, but I ran into the same Problem. Does anybody have a clue?
Greetz
-
Sounds like you want to use Blend Tree's- Unity has some pretty good doc's/tutorials on them
http://docs.unity3d.com/Manual/class-BlendTree.html
-
Thnx mdotstrange :),
found a solution myself:
make two sliders, get their values and feed them into global floats. Then animated the seperate parts on the GO myself (morphkeys and transform included). then linked everything to the values. So it is posible to play animations on the same mesh with seperate sliders and even add/blend them.