Skip to main content

Animator.GetBool(string name)

Returns the value of the given boolean parameter.

Parameters:

NameTypeDescription
namestringThe parameter name.

Returns:

typeDescription
booleanThe value of the parameter.

Usage

---@type Animator
local animator;

---@type string
local name;


local val0 = animator.GetBool(name)

Extra Detail

Return the current state of a bool parameter within the Animator Controller. Use the parameter’s name or ID to search for the appropriate one.