- Home /
Help With Legacy, Mecanim And Humanoid Rig
If I'm correct, mecanim system only works with humanoid rig. So I got my model into unity, and i gave her a humanoid rig. But when i try playing animations, i get the error "Animation must be marked as legacy". i change the rig to legacy and animations play well, but i can't use mecanim and there's no avatar.
If mecanim can't be used with legacy, how do i go about this. I've been using legacy and it's been fine so far, but there are a lot of effects i can't achieve without the use of avatars, bodymask layers, IK stuff and so on. there's something i'm missing. please help me point it out. Thanks
Answer by OllyNicholson · Apr 15, 2014 at 03:48 PM
Your statement is not correct, Mecanim works with both Generic and Humanoid rigs. The workflow is that you select the rig type in the inspector and set up the avatar for Humanoid rigs or Generic for non Humanoid Rigs. You have to provide that rig (skeleton/bone hierarchy) yourself with the model in the FBX e.g. a rigged skinned mesh. If you do not have a rigged/skinned mesh then you might want to read this tutorial:
http://blogs.unity3d.com/2014/04/14/turn-your-character-into-a-player/
If you have provided a rigged mesh and this is not working for you then it sounds like your bone hierarchy might not be suitable, or there is an issue with your exported file. Please follow these instructions for setting up your character:
http://docs.unity3d.com/Documentation/Manual/Preparingacharacterfromscratch.html http://unity3d.com/learn/tutorials/modules/beginner/animation/avatars
@Olly If you rig is humanoid compatible and you are using generic rig. Everything else configured properly, still there could be something to look upon? can you state where I am doing wrong? $$anonymous$$y rig is configured properly. Animations are playing nicely in the animation tab but I am not able to get the effect when I am using humanoid rig and playing animations from the script. The same model and animations works flawlessly with the generic rig.
Your answer
![](https://koobas.hobune.stream/wayback/20220613142752im_/https://answers.unity.com/themes/thub/images/avi.jpg)