Skip to content

Format

typescript
Scene.instanceID

class: 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_nametypedescription

Return

typedescription
numberThe object ID.

Code Example

typescript
const scene = SceneManager.CreateScene("test");
const count = scene.instanceID;