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

Switch to Manual
public bool IsInTransition(int layerIndex);

Parameters

layerIndexThe layer index.

Returns

bool True if there is a transition on the given layer, false otherwise.

Description

Returns true if there is a transition on the given layer, false otherwise.