- Home /
Mecanim, my object deforms when I put my own animations!
Hello
I have made a model and put the bot animations on it and worked fine but when I made some animations some of them worked and other gave me this shape in the attached image any ideas what to do?
Thanks in advance
(bot animations from here: http://video.unity3d.com/video/7362044/unity-40-mecanim-animation-tutorial)
Answer by Tryz · Nov 21, 2013 at 12:47 PM
Click the animation file you're using and select 'Rig' at the top of the inspector.
Make sure that:
Animation Type is 'Humanoid' Avatar
Definition is 'Copy From Other Avatar'
Source is 'DefaultAvatarAvatar'
That last one is the one that fixed a similar problem I had. I thought I needed to change this to the avatar in my game, but it needs to be the "Source" avatar. Meaning the avatar the animations were created from.
In this case, the tutorial's model.
Hope that helps.