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

Switch to Manual
public AnimatorTransitionInfo GetAnimatorTransitionInfo(int layerIndex);

Parameters

layerIndexThe layer's index.

Returns

AnimatorTransitionInfo An AnimatorTransitionInfo with the informations on the current transition.

Description

Returns an AnimatorTransitionInfo with the informations on the current transition.