format
typescript
GameObject.instanceIDclass: GameObject
description
(Read Only) The instance ID of the current object.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number | The instance ID of the current object. |
code example
typescript
let go = new GameObject("test");
Debug.Log(go.instanceID);