Api > Animator > IsInTransition()
Animator.IsInTransition(number layerIndex)⚓︎
Returns true if there is a transition on the given layer, false otherwise.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
layerIndex | number | The layer index. |
Returns:⚓︎
type | Description |
---|---|
boolean | True if there is a transition on the given layer, false otherwise. |
Usage⚓︎
---@type Animator
local animator;
---@type number
local layerIndex;
local val0 = animator.IsInTransition(layerIndex)