Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AnimatorControllerPlayable

An implementation of IPlayable that controls an animation RuntimeAnimatorController.
Read time 2 minutesLast updated 6 days ago

Definition

public struct AnimatorControllerPlayable : IPlayable, IEquatable<AnimatorControllerPlayable>

Remarks

NOTE: You can use PlayableExtensions methods with AnimatorControllerPlayable objects.

Static Properties

Property

Description

NullReturns an invalid AnimatorControllerPlayable.

Methods

Method

Description

CrossFadeCreates a crossfade from the current state to any other state using normalized times.
CrossFadeInFixedTimeCreates a crossfade from the current state to any other state using times in seconds.
GetAnimatorTransitionInfoReturns an AnimatorTransitionInfo with the informations on the current transition.
GetBoolReturns the value of the given boolean parameter.
GetCurrentAnimatorClipInfoReturns an array of all the AnimatorClipInfo in the current state of the given layer.
GetCurrentAnimatorClipInfoCountReturns the number of AnimatorClipInfo in the current state.
GetCurrentAnimatorStateInfoReturns an AnimatorStateInfo with the information on the current state.
GetFloatReturns the value of the given float parameter.
GetIntegerReturns the value of the given integer parameter.
GetLayerIndexReturns the index of the layer with the given name.
GetLayerNameReturns the layer name.
GetLayerWeightReturns the weight of the layer at the specified index.
GetNextAnimatorClipInfoReturns an array of all the AnimatorClipInfo in the next state of the given layer.
GetNextAnimatorClipInfoCountReturns the number of AnimatorClipInfo in the next state.
GetNextAnimatorStateInfoReturns an AnimatorStateInfo with the information on the next state.
GetParameterSee _parameters.
HasStateReturns true if the state exists in this layer, false otherwise.
IsInTransitionReturns true if there is a transition on the given layer, false otherwise.
IsParameterControlledByCurveReturns true if the parameter is controlled by a curve, false otherwise.
PlayPlays a state.
PlayInFixedTimePlays a state.
ResetControllerStateResets the AnimatorController to its default state.
ResetTriggerResets the value of the given trigger parameter.
SetBoolSets the value of the given boolean parameter.
SetFloatSend float values to the AnimatorController to affect transitions.
SetIntegerSets the value of the given integer parameter.
SetLayerWeightSets the weight of the layer at the given index.
SetTriggerSets the value of the given trigger parameter.

Static Methods

Method

Description

CreateCreates an AnimatorControllerPlayable in the PlayableGraph.