Scene.createSceneLayer

Creates a nested scene layer on this scene.

Scene.createSceneLayer() method

Creates a nested scene layer on this scene.

Signature:

createSceneLayer(opts?: SceneLayerCreateOptions): SceneLayer;

Parameters

Parameter

Type

Description

opts

SceneLayerCreateOptions

(Optional) Options for creating the scene layer

Returns:

SceneLayer

The newly created scene layer, parented under this scene

Remarks

The returned layer lives inside this scene. The opts.scene referenced is the source content rendered by the layer. The source scene must be a nestable scene.

Example

// Create a scene layer with a source scene
const sceneLayer = scene.createSceneLayer({ scene: nestedSourceScene });
Last updated: October 8, 2026 at 10:45 AMEdit this page