Skip to main content

Animator.GetFloat(string name)

Returns the value of the given float parameter.

Parameters:

NameTypeDescription
namestringThe parameter name.

Returns:

typeDescription
numberThe value of the parameter.

Usage

---@type Animator
local animator;

---@type string
local name;


local val0 = animator.GetFloat(name)

Extra Detail

If the float parameter you specify doesn't exist, the float returns as 0.