Skip to main content

AnimatorStateInfo.IsName(string name)

Does name match the name of the active state in the statemachine?

Parameters:

NameTypeDescription
namestringname

Returns:

typeDescription
booleanTrue 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".