Creates a scene that manages a collection of entities and their update/draw lifecycle.
Scenes handle z-sorted drawing, paused state, and entity addition/removal. Use scene.spawn() to mount a root component tree.
scene.spawn()
Unique identifier for the scene
A KaylaScene wrapper with .spawn() and other methods
KaylaScene
.spawn()
const scene = createScene("main");scene.spawn(<GameWorld />); Copy
const scene = createScene("main");scene.spawn(<GameWorld />);
Creates a scene that manages a collection of entities and their update/draw lifecycle.
Scenes handle z-sorted drawing, paused state, and entity addition/removal. Use
scene.spawn()to mount a root component tree.