Skip to main content
Defined in: modules/scene/src/scene.library.ts:16 Options of SceneLibrary.

Type Parameters

TParams

TParams = unknown

Properties

initial?

optional initial?: SceneClass<TParams>
Defined in: modules/scene/src/scene.library.ts:18 The scene loaded at the start of the first tick.

params?

optional params?: TParams
Defined in: modules/scene/src/scene.library.ts:20 Params of the initial scene.

scenes?

optional scenes?: Readonly<Record<string, SceneClass<never>>>
Defined in: modules/scene/src/scene.library.ts:26 Every scene class of the game, by id: { Menu, Level1 }. The ids name the scenes for the editor (and survive a bundler renaming a class), and let it load any of them while the game runs. A scene missing from it is known by its class name.