I have an animated character using mecanim.
How would I make his head not be affected by any animation at all?
I want to take control of it with code without the movement caused by the animations.
You can use an Avatar Mask:
http://docs.unity3d.com/Documentation/Components/class-AvatarBodyMask.html
I tried that a few different ways.
But how exactly could I do it?
I watched the tutorial and went through the documentation.
Only way I’ve done it is by making a new layer via animator and slapping that on top of it. I don’t have much experience beyond that, the “stealth” tutorial in the asset store does it this way.
Strange. I tried that but it animates anyways. Would the mask have the head green or red?
Red == will not animate
Green == will animate
I understand that.
When you say “slapping that on top of it”, what do you mean by “that”?
The part I’m trying to figure out is how to override an animation with no animation.
“That” is the AvatarMask -
And it goes there: Mask None (AvatarMask)
Ok epic fail on my part. I forgot to mention there’s TWO ways of doing it, you can do it using the animator or you can do it on the import settings (of the imported model that contains the animations) → animation → body mask directly at the bottom of the settings, hidden away nicely…
Here’s an image that may help.
Edit: Broken in 4.1.2 - cant apply/revert settings they’re greyed out.
So I can’t do it until it gets fixed?
I was wondering why I couldn’t apply it in the import settings.
Thanks for the help.
I filed a bug report but no saying if/when it’ll be fixed… ![]()
Kind of need it too for my attack animations while moving…
Still no fix?