Add and configure the state machine
Last updated
Last updated
The main component of the state machine is the CharacterStateController. You'll need to add this component anywhere within the character hierarchy (read the Organize the character hierarchy section for more information).
The state machine needs a state to work with, this is referred as the current state in the inspector. You'll need to add at least one state to the character, and assign that state as the current state reference.
Set up the movement reference (see the Character state controller section).
If the character is going to follow a camera direction (common case) choose "External" and assign the camera as the External Reference.