Optional
animatorthe animator that this controller is bound to
the model that this controller is based on
The normalized time of the start state. This is used to determine the start time of the first state.
Get the currently active state playing
the currently active state or undefined if no state is active
Get the current action (shorthand for activeState.motion.action)
the current action that is playing. This is the action that is currently transitioning to or playing. If no action is playing null is returned.
Get the animation mixer that is used to play the animations
Bind the animator to the controller. Only one animator can be bound to a controller at a time.
Create a clone of the controller. This will clone the model but not the runtime state.
Get the current state info
the current state info or null if no state is active
Static
createCreate an animatorcontroller. States are created from the clips array.
the clips to assign to the controller
options to control the creation of the controller.
the created animator controller
The AnimatorController is used to control the playback of animations. It is used by the Animator component. It is using a state machine to control the playback of animations.
To create an animator controller use the static method
AnimatorController.createFromClips(clips: AnimationClip[], options: CreateAnimatorControllerOptions)