Format
typescript
Transform.instanceIDclass: Transform
Description
(Read Only) The instance ID of the object that this Transform belongs to.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number | The instance ID. |
Code Example
typescript
OnStart(): void {
let id = this.transform.instanceID;
Debug.Log(id);
}