Api > AnimatorStateInfo > IsName()
AnimatorStateInfo.IsName(string name)⚓︎
Does name match the name of the active state in the statemachine?
Parameters:⚓︎
Name | Type | Description |
---|---|---|
name | string | name |
Returns:⚓︎
type | Description |
---|---|
boolean | True if name match the name of the active state in the statemachine |
Usage⚓︎
---@type AnimatorStateInfo
local animatorstateinfo;
---@type string
local name;
local val0 = animatorstateinfo.IsName(name)
Extra Detail⚓︎
The name should be in the form Layer.Name, for example "Base.Idle".