LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

Animator.GetCurrentAnimatorClipInfoCount

Switch to Manual
public int GetCurrentAnimatorClipInfoCount(int layerIndex);

Parameters

layerIndexThe layer index.

Returns

int The number of AnimatorClipInfo in the current state.

Description

Returns the number of AnimatorClipInfo in the current state.