Skip to main content

Animator.Play(string stateName, number layer, number normalizedTime = -#INF)

Plays a state.

Parameters:

NameTypeDescription
stateNamestringThe state name.
layernumberThe layer index. If layer is -1, it plays the first state with the given state name or hash.
normalizedTimenumberThe time offset between zero and one.

Usage

---@type Animator
local animator;

---@type string
local stateName;

---@type number
local layer;

---@type number
local normalizedTime;


animator.Play(stateName, layer, normalizedTime)