Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Animator.GetNextAnimationClipState

Switch to Manual
GetNextAnimationClipState(layerIndex: int): AnimationInfo[];
AnimationInfo[] GetNextAnimationClipState(int layerIndex);
def GetNextAnimationClipState(layerIndex as int) as AnimationInfo[]

Parameters

layerIndexThe layer's index.

Description

Gets the list of AnimationInfo currently played by the next state.

Only valid when during a transition.