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

Switch to Manual
GetNextAnimatorStateInfo(layerIndex: int): AnimatorStateInfo;
AnimatorStateInfo GetNextAnimatorStateInfo(int layerIndex);
def GetNextAnimatorStateInfo(layerIndex as int) as AnimatorStateInfo

Parameters

layerIndexThe layer's index.

Description

Gets the next State information on a specified AnimatorController layer.

Only valid when during a transition.