Legacy Documentation: Version 2017.1 (Go to current version)
The Animator Window
State Machine Basics
Other Versions

Animation State Machines

It is common for a character or other animated Game Object to have several different animations that correspond to different actions it can perform in the game. For example, a character may breathe or sway slightly while idle, walk when commanded to and raise its arms in panic as it falls from a platform. A door may have animations for opening, closing, getting jammed, and being broken open. Mecanim uses a visual layout system similar to a flow-chart, to represent a state machine to enable you to control and sequence the animation clips that you want to use on your character or object. This section gives further details about Mecanim’s state machines and explains how to use them.