Format
typescript
Scene.instanceIDclass: Scene
Description
(Read-only) The instance ID of the object.
The instance ID is a unique identifier that remains unchanged throughout the object's lifetime. (Read-only)
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number | The object ID. |
Code Example
typescript
const scene = SceneManager.CreateScene("test");
const count = scene.instanceID;