DefaultSceneManager
Package: Libraries.Game.Scenes · Inherits from: Libraries.Language.Object, Libraries.Game.Scenes.SceneManager
Actions
CopyControllerBlock(Libraries.Data.Formats.JavaScriptObjectNotation block)
This action returns a new copy of a Controller block, made from its settings, so it can be kept or saved without changing the block it came from. A block of a kind this program doesn't know gives undefined.
Parameters
blockLibraries.Data.Formats.JavaScriptObjectNotation: The block.
Returns
Libraries.Data.Formats.JavaScriptObjectNotation: The copy, or undefined.
CustomLoadProperty2D(Libraries.Interface.Item2D item, text key, Libraries.Data.Formats.JavaScriptObjectNotation json)
This action can be used to override a portion of the default Item3D loading.
Parameters
Returns
boolean
CustomLoadProperty3D(Libraries.Interface.Item3D item, text key, Libraries.Data.Formats.JavaScriptObjectNotation json)
This action can be used to override a portion of the default Item3D loading.
Parameters
Returns
boolean
GetController(text name)
This action returns the controller built for the item with a name, such as a car built from a model's Vehicle controller.
Parameters
nametext: The item's name.
Returns
Libraries.Game.Scenes.SceneController: The controller, or undefined if no item of that name has one.
GetControllers()
This action returns every controller built for the scenes loaded.
Returns
Libraries.Containers.Array<Libraries.Game.Scenes.SceneController>: The controllers.
GetLoadedMaterials()
This action returns the layer materials loaded for the scene, by their files' full paths, so a scene editor can share them when it adds a layer from the same file.
Returns
Libraries.Containers.HashTable<text:Libraries.Game.Graphics.Models.Data.Material>: The materials.
Load(Libraries.Game.Scenes.Scene scene)
so layers naming the same material file share it.
Parameters
Save(Libraries.Game.Game game)
This action returns the layer materials loaded for the scene, by their files' full paths, so a scene editor can share them when it adds a layer from the same file.
Parameters
gameLibraries.Game.Game
Returns
Libraries.Game.Scenes.Scene: The materials.
Save(Libraries.Containers.Array<Libraries.Game.Layer> layers)
next save drops it.
Parameters
Returns
SaveSkybox(Libraries.Game.Graphics.Skybox skybox)
By name, once each, so every piece with a name is hidden.
Parameters
Returns