Skip to main content

Animator.HasState(number layerIndex, number stateID)

Returns true if the state exists in this layer, false otherwise.

Parameters:

NameTypeDescription
layerIndexnumberThe layer index.
stateIDnumberThe state ID.

Returns:

typeDescription
booleanTrue if the state exists in this layer, false otherwise.

Usage

---@type Animator
local animator;

---@type number
local layerIndex;

---@type number
local stateID;


local val0 = animator.HasState(layerIndex, stateID)