CreatorAPI.createScene
Creates a new scene.
CreatorAPI.createScene() method
Creates a new scene.
Signature:
createScene(opts?: SceneCreateOptions): Scene;Parameters
Parameter | Type | Description |
|---|---|---|
opts | (Optional) Options for creating the scene |
Returns:
The newly created scene
Example
// Create a new scene
const newScene = creator.createScene({
name: "New Scene",
size: { width: 1920, height: 1080 },
framerate: 60,
duration: 5,
});Last updated: August 13, 2026 at 9:17 AMEdit this page