Skip to content

Api > Animator > GetBool()


Animator.GetBool(string name)⚓︎

Returns the value of the given boolean parameter.

Parameters:⚓︎

Name Type Description
name string The parameter name.

Returns:⚓︎

type Description
boolean The 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.