An animated character typically has a number of different movements that are activated in the game in different circumstances, called Animation ClipsAnimation data that can be used for animated characters or simple animations. It is a simple “unit” piece of motion, such as (one specific instance of) “Idle”, “Walk” or “Run”. More info
See in Glossary. For example, we might have separate animation clips for walking, running, jumping, throwing, and dying. Depending on how the artist set up the animation in the 3D modeling application, these separate movements might be imported as distinct animation clips or as one single clip where each movement simply follows on from the previous one. In cases where there is only one long clip, you can extract component animation clips inside Unity, which adds a few extra steps to your workflow.
If your model has multiple animations that you already defined as individual clips, the Animations tab looks like this:
You can preview any of the clips that appear in the list. If you need to, you can edit the time ranges of the clips.
If your model has multiple animations supplied as one continuous take, the Animation tab looks like this:
In this case, you can define the time ranges (frames or seconds) that correspond to each of the separate animation sequences (walking, jumping, running, and idling). You can create a new animation clip by following these steps:
+
) button.For example, you could define the following:
For further information, see the Animation tab.
Another way to import animations is to follow a naming scheme that Unity allows for the animation files. You can create separate model filesA file containing a 3D data, which may include definitions for meshes, bones, animation, materials and textures. More info
See in Glossary and name them with the convention modelName@animationName.fbx
. For example, for a model called goober
, you could import separate idle, walk, jump and walljump animations using files named goober@idle.fbx
, goober@walk.fbx
, goober@jump.fbx
and goober@walljump.fbx
. When exporting animation like this, it is unnecessary to include the MeshThe main graphics primitive of Unity. Meshes make up a large part of your 3D worlds. Unity supports triangulated or Quadrangulated polygon meshes. Nurbs, Nurms, Subdiv surfaces must be converted to polygons. More info
See in Glossary in these files, but in that case you should enable the Preserve Hierarchy Model import option.
Unity automatically imports all four files and collects all animations to the file without the @ sign in. In the example above, Unity imports the goober.mb
file with references to the idle
, jump
, walk
and wallJump
animations automatically.
For FBX files, you can export the Mesh in a Model file without its animation. Then export the four clips as goober@_animname_.fbx
by exporting the desired keyframesA frame that marks the start or end point of a transition in an animation. Frames in between the keyframes are called inbetweens.
See in Glossary for each (enable animation in the FBX dialog).
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.