Skip to content

format

typescript
Animator.GetInteger(name)

class: Animator

description

Gets the current value of the integer type parameter with the specified parameter name.

parameter

param_nametypedescription
namestringThe name of the parameter.

reture

typedescription
number|undefinedA 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");