Version: 1.10
LanguageEnglish
  • C#

AnimationStateMachinePlayable

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

NOTE: You can use PlayableExtensions methods with AnimationStateMachinePlayable objects.

Static Properties

NullReturns an invalid AnimationStateMachinePlayable.

Public Methods

CrossFadeTransitions to the specified state using normalized time.
CrossFadeInFixedTimeTransitions to the specified state using fixed time.
GetAnimatorTransitionInfoReturns an AnimatorTransitionInfo with the informations on the current transition.
GetCurrentAnimatorStateInfoReturns an AnimatorStateInfo with the information on the current state.
GetNextAnimatorStateInfoReturns an AnimatorStateInfo with the information on the next state.
GotoStateTransitions to the specified state using transition parameters.
IsInTransitionReturns true if there is a transition on the current playable, false otherwise.
PlayPlays the specified state using normalized time.
PlayInFixedTimePlays the specified state using fixed time.
SetStatePlayableReturns an bool for whether setting is completed.
SetTransitionIndexOffsetSets the transition index offset for the state machine.

Static Methods

CreateCreates an [[AnimationStateMachinePlayable] in the PlayableGraph.