Follow

I'm having trouble transferring animations in Unity / Mecanim. Can you help?

This is a basic walk through on how to get your character moving using a different Avatar (MotusMan).

 

Initial Setup:

Your model/skeleton should be Unity compatible. It is looking for FBX standard bone names and basic hierarchy.
Select your character file to show its "Rig" properties in the Inspector.
For the "Rig" choose "Humanoid"
"Avatar Definition" choose "Create From This Model"
Click "Apply". You should see a check next to "Configure..." meaning auto-configure worked. The exact bone assignments can be configured manually if names/hierarchy are non-standard.

Select the "MotusMan_V2" character file to show its "Rig" properties in the Inspector.
Choose and apply the same setup options as were done above. "Humanoid", "Create From This Model"
All the Motus Man animations are in the "Animation" folder.
Shift select all the motion files in the folder.
For the "Rig" choose "Humanoid"
"Avatar Definition" choose "Copy From Other Avatar"
Choose the "Source" (little circle button on the right) and from the "Assets" window select "MotusMan_V2Avatar". Close the window.
Click "Apply" and give it a few seconds to finish updating all the selected files.

 

Preview Play Test:

Select one of the files in the "Animation" folder. Click the "Animations" button in the "Inspector".
Click the play button in the previewer and MotusMan is visible and moving.
Drag your character file from the "Project" window and drop it onto the preview window. MotusMan will be replaced by your character. Your character will now be seen in the previewer for all the Motus animations.

 

Scene Play Test:

In the "Project" window, "Create" an "Animator Controller".
Drag your character file from the "Project" window to the "Hierarchy". It will stay selected and appear in the "Scene".
In the "Inspector", choose a "Controller" (little circle button on the right) and from the "Assets" window select your newly created Controller. Close the window.
In the "Animation" folder, drag the 'Animation Clip' component (it has a play button icon) of the motion of your choice into the "Animator" window. It will appear along with the "Any State" node, and become the default animation.
Click the scene Play button at the center top of the window, and voila!
Your character is now being animated by the Motus source animation via the Controller. All other Motus animations added to the controller will work as well.

 

This is the most basic of setups/connections of course to get started. Setting of loops and baking of the animations along with Controller setup of trees and transitions etc. etc. etc. are needed for desired results and more robust variations, and the subject of another set of tutorials.

Some of many good links:
http://answers.unity3d.com/questions/12321/how-can-i-start-learning-unity-fast-list-of-tutori.html
http://unity3d.com/learn/tutorials/modules
http://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/editor-basics
http://unity3d.com/learn/tutorials/modules/beginner/animation

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk