Animator.Play(string stateName, number layer, number normalizedTime = -#INF)
Plays a state.
Parameters:
Name | Type | Description |
---|---|---|
stateName | string | The state name. |
layer | number | The layer index. If layer is -1, it plays the first state with the given state name or hash. |
normalizedTime | number | The 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)