Animator.GetFloat(string name)
Returns the value of the given float parameter.
Parameters:
Name | Type | Description |
---|---|---|
name | string | The parameter name. |
Returns:
type | Description |
---|---|
number | The 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.