Version: 2022.1
LanguageEnglish
  • C#

AnimatorControllerPlayable

struct in UnityEngine.Animations

/

Implemented in:UnityEngine.AnimationModule


Implements interfaces:IPlayable

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

An implementation of IPlayable that controls an animation RuntimeAnimatorController.

NOTE: You can use PlayableExtensions methods with AnimatorControllerPlayable objects.

Static Properties

NullReturns an invalid AnimatorControllerPlayable.

Public Methods

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 AnimatorController.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.
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

CreateCreates an AnimatorControllerPlayable in the PlayableGraph.