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

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

Parameters

layerIndexThe layer's index.

Description

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