SceneLibrary.
Type Parameters
TParams
TParams = unknown
Properties
initial?
Defined in: modules/scene/src/scene.library.ts:18 The scene loaded at the start of the first tick.optionalinitial?:SceneClass<TParams>
params?
Defined in: modules/scene/src/scene.library.ts:20 Params of the initial scene.optionalparams?:TParams
scenes?
Defined in: modules/scene/src/scene.library.ts:26 Every scene class of the game, by id:optionalscenes?:Readonly<Record<string,SceneClass<never>>>
{ 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.