Skip to content

format

typescript
GameObject.instanceID

class: GameObject

description

(Read Only) The instance ID of the current object.

parameter

param_nametypedescription

reture

typedescription
numberThe instance ID of the current object.

code example

typescript
let go = new GameObject("test");
Debug.Log(go.instanceID);