luxe: world/scene
import "luxe: world/scene" for SceneScenes are collections of entities that are stored together and can be instanced together. If entities in a scene have a transform modifier without a transform parent, the scene root will automatically be set as their parent.
Once a scene is instanced in a world, all its entities behave just like other entities in the world and get assigned unique entity UUIDs. Relative scene UUIDs, or named entities within a scene can be accessed via the root entity of the scene instance.
Getting information about a Scene is generally done via the
Entity.___(_)functions that mention acontext. Resolving scene addresses is doneEntity.get_addressed_in(scene, address).
Scene.create(..)
Section titled “Scene.create(..)”Scene.create(world : World, scene : Scene) : EntityLoads a scene from a scene asset. Returns the root entity of the newly loaded scene.
var main_root = Scene.create(app.world, Asset.scene("scene/main"))
Scene.create(…)
Section titled “Scene.create(…)”Scene.create(world : World, scene : Scene, on_ready : Fn) : EntityVersion of scene load that calls
on_readyfunction when done loading (just before scene script runs).
Scene.has(.)
Section titled “Scene.has(.)”Scene.has(entity : Entity) : unknownGet if the entity the root of a scene.
Scene.fix_id(.)
Section titled “Scene.fix_id(.)”Scene.fix_id(id : String) : unknownGiven a full absolute ID to the scene.lx asset, make it a path id (note: temporary solution till asset ids migrate)
Scene.connect(…)
Section titled “Scene.connect(…)”Scene.connect(world : World, scene_id : String, wire : Num, fn : Fn) : unknownno docs found
Scene.send(…)
Section titled “Scene.send(…)”Scene.send(scene_id : String, wire : Num, entity : Entity, data : Any) : unknownno docs found
SceneReady
Section titled “SceneReady”import "luxe: world/scene" for SceneReadyno docs found
Variables
Section titled “Variables”var world : World = 0var scene : Entity = Entity.nonevar data : Any = nullvar state : States = nullSceneReady.new(..)
Section titled “SceneReady.new(..)”SceneReady.new(world : World, scene : Entity) : SceneReadyno docs found
SceneReady.editor_new(..)
Section titled “SceneReady.editor_new(..)”SceneReady.editor_new(world : World, scene : Entity) : SceneReadyno docs found
SceneReady.ready(..)
Section titled “SceneReady.ready(..)”SceneReady.ready(world : World, scene : Entity) : unknownno docs found
SceneReady.ready(.)
Section titled “SceneReady.ready(.)”SceneReady.ready() : unknownno docs found
SceneReady.change(.)
Section titled “SceneReady.change(.)”SceneReady.change(change : SceneChange) : unknownno docs found
SceneReady.editor_change(.)
Section titled “SceneReady.editor_change(.)”SceneReady.editor_change(change : SceneChange) : unknownno docs found
SceneReady.editor_ready(..)
Section titled “SceneReady.editor_ready(..)”SceneReady.editor_ready(world : World, scene : Entity) : unknownno docs found
SceneReady.editor_ready(.)
Section titled “SceneReady.editor_ready(.)”SceneReady.editor_ready() : unknownno docs found
SceneReady.tick(.)
Section titled “SceneReady.tick(.)”SceneReady.tick(delta : Num) : unknownno docs found
SceneReady.editor_tick(.)
Section titled “SceneReady.editor_tick(.)”SceneReady.editor_tick(delta : Num) : unknownno docs found
SceneReady.destroy(..)
Section titled “SceneReady.destroy(..)”SceneReady.destroy(world : World, scene : Entity) : unknownno docs found
SceneReady.destroy(.)
Section titled “SceneReady.destroy(.)”SceneReady.destroy() : unknownno docs found
SceneReady.editor_destroy(..)
Section titled “SceneReady.editor_destroy(..)”SceneReady.editor_destroy(world : World, scene : Entity) : unknownno docs found
SceneReady.editor_destroy(.)
Section titled “SceneReady.editor_destroy(.)”SceneReady.editor_destroy() : unknownno docs found
import "luxe: world/scene" for Stageno docs found
Stage.create(..)
Section titled “Stage.create(..)”Stage.create(world : World, stage : Stage) : unknownno docs found