Game Development Reference
In-Depth Information
Setting up the animation controller
To get started, first we need to add the
Animator
component to the player's game object
by navigating to
Add Component
|
Miscellaneous
|
Animator
in the
Inspector
pane.
Leave all the other options alone for now.
Next, create a new animation
Controller
in
Assets/Animation/Controllers
by
navigating to
Create
|
Animator Controller
in the
Project
window (or by right-clicking
on it while viewing the folder). Then, drag the new controller to the
Controller
property
in the
Animator
component we just created.
You should now have something that looks like the following screenshot: