- Home /
AddMixingTransform with Mecanim
Is it possible?
If not, then what's the best way to go about it in Mecanim? Remaking 20 "walk" animations isn't plausible.
Thanks for any help!
i'm also having the same problem. anyone can help ? (we could, however, not assign undesired bones, corresponding no transforms not to add to mixingtransforms, on avatar retargeting, but that would also lead to multiple copies of the same animation)
Answer by zhuchun · Jun 23, 2013 at 04:03 AM
Yes, that's work.
You need a new layer in mecanim animator, like "upper layer" and make sure its "weight" is bigger than your exists base layer, and set it's blending to "Additive"(If you don't want mix all animation on this joint in same time, set it to "override" instead). You may noticed there's a "Mask" option above blending, and that's the second thing you need, it's a body mask just like what you did in AddMixingTransform.
Add animation to upper layer, what's more, you may need extra parameters and call anmator.setFloat/Bool etc in your script to control you animation.
That's all.
Your answer
Follow this Question
Related Questions
Mecanim: get animation duration from Animator state name 0 Answers
How do I fix this lerp this float so it doesnt snap from animation to another 1 Answer
Unity 5 - Starting Mecanim Animation At Specific Time 0 Answers
Start Mecanim animation at random time. 5 Answers
Create 2D box colliders based on current frame of animation 0 Answers