Script language:

  • JS
  • C#
  • Boo
Script language

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

Suggest a change


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


layerIndexThe layer's index.


Gets the current State information on a specified AnimatorController layer.

Your name (optional):
Your email (optional):
Please write your suggestion here: