Creates a new Scene.
Optionalparams: SceneParamsOptional configuration including coordinate system settings and logging preferences.
ReadonlycoordinateThe coordinate system used throughout this Scene.
This determines how all positions, orientations, and transformations within the Scene are interpreted.
Indicates whether this Scene has been destroyed.
When true, new models cannot be created and most operations will
return an error result.
ReadonlyeventsEvent dispatcher for Scene‑level lifecycle events.
ReadonlyidUnique ID of this Scene. This is generated automatically.
Enables or disables console logging of SDK errors.
Defaults to false. When enabled, any dispatched error will also be
logged via console.error.
ReadonlymodelsAll SceneModel instances belonging to this Scene, keyed by their unique model ID.
ReadonlyobjectsAll SceneObject instances currently registered in this Scene.
Objects are stored at the Scene level so tools and utilities can access them without needing to know which model they belong to.
Destroys all SceneModel instances in this Scene.
For each model:
A SDKResult indicating success or failure.
Creates and registers a new SceneModel in this Scene.
Parameters for the new SceneModel.
SDKResult containing the created SceneModel or an error.
Fully destroys this Scene and all of its models and objects.
This performs:
After destruction, most Scene operations become invalid.
Represents the root container for all scene‑level state, including models, objects, meshes, geometries, textures and runtime events.
A
Sceneserves as the authoritative registry and lifecycle manager of:It provides:
See @xeokit/sdk/scene for general usage examples.