format
typescript
Animator.GetInteger(name)class: Animator
description
Gets the current value of the integer type parameter with the specified parameter name.
parameter
| param_name | type | description |
|---|---|---|
| name | string | The name of the parameter. |
reture
| type | description |
|---|---|
number|undefined | A boolean value indicating whether the current value of the parameter is obtained. Returns false if the parameter name is empty or the parameter type is inconsistent.The current value of the parameter. |
code example
typescript
let obj = new GameObject();
let animator = obj.AddComponent<Animator>(Animator);
animator.GetInteger("int0");