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

Switch to Manual
public AnimatorStateInfo GetNextAnimatorStateInfo(int layerIndex);

Parameters

layerIndexThe layer index.

Returns

AnimatorStateInfo An AnimatorStateInfo with the information on the next state.

Description

Returns an AnimatorStateInfo with the information on the next state.