GetBool
Returns the value of the given boolean parameter.
阅读时间1 分钟最后更新于 1 个月前
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.