Version: Unity 6 Preview (6000.0)
Language : English
Animator Controller
Animation States

Create an Animator Controller

Animator Controller

You can view and set up character behavior from the Animator ControllerControls animation through Animation Layers with Animation State Machines and Animation Blend Trees, controlled by Animation Parameters. The same Animator Controller can be referenced by multiple models with Animator components. More info
See in Glossary
view (Menu: Window > Animation > Animator).

To create an Animator Controller, do one of the following:

  • Select Create > Animator Controller from the Project window.
  • Right-click in the Project window and select Create > Animator Controller.
  • From the Assets menu, selecting AssetsAny media or data that can be used in your game or project. An asset may come from a file created outside of Unity, such as a 3D Model, an audio file or an image. You can also create some asset types in Unity, such as an Animator Controller, an Audio Mixer or a Render Texture. More info
    See in Glossary
    > Create > Animator Controller.

This creates a .controller asset. In the Project Browser window the icon will look like:

Animator Controller asset on disk
Animator Controller asset on disk

Animator Window

After the state machineThe set of states in an Animator Controller that a character or animated GameObject can be in, along with a set of transitions between those states and a variable to remember the current state. The states available will depend on the type of gameplay, but typical states include things like idling, walking, running and jumping. More info
See in Glossary
setup has been made, you can drop the controller onto the Animator componentA component on a model that animates that model using the Animation system. The component has a reference to an Animator Controller asset that controls the animation. More info
See in Glossary
of any character with an AvatarAn interface for retargeting animation from one rig to another. More info
See in Glossary
in the Hierarchy View.

The Animator Controller window contains:

  • The Animation Layer Widget (top-left corner, consult Animation LayersAn Animation Layer contains an Animation State Machine that controls animations of a model or part of it. An example of this is if you have a full-body layer for walking or jumping and a higher layer for upper-body motions such as throwing an object or shooting. The higher layers take precedence for the body parts they control. More info
    See in Glossary
    )
  • The Event Parameters Widget (top-left, consult Animation ParametersUsed to communicate between scripting and the Animator Controller. Some parameters can be set in scripting and used by the controller, while other parameters are based on Custom Curves in Animation Clips and can be sampled using the scripting API. More info
    See in Glossary
    )
  • The visualization of the State Machine itself.
The Animator Controller Window
The Animator Controller Window

The Animator Controller window always displays the state machine from the most recently selected .controller asset, regardless of which sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
is loaded.

Animator Controller
Animation States