GetBool
Returns the value of the given boolean parameter.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Animations
- Assembly: UnityEngine.AnimationModule
GetBool(string)
Returns the value of the given boolean parameter.
public bool GetBool(string name)
Parameters
The parameter name.
Returns
Type | Description |
|---|---|
| bool | The value of the parameter. |
Remarks
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.
GetBool(int)
Returns the value of the given boolean parameter.
public bool GetBool(int id)
Parameters
The parameter ID.
Returns
Type | Description |
|---|---|
| bool | The value of the parameter. |
Remarks
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.