Constructor
new L3D.Scene()
Extends
Properties
Is this scene the current active scene?
- Overrides:
Get the filename of the asset.
The top level scene graph
The icon to use for the scene's node.
- Overrides:
The unique identifier of the object. Changing a node's ID can have unintended consequences.
- Overrides:
True if the asset has finished loading.
- Overrides:
True if the asset is in the process of loading.
Is the scene currently being played?
- Overrides:
True if the asset does not have an error.
- Overrides:
The name of the object.
Emitted when objects become active.
- Overrides:
Emitted when there was an error loaading the asset.
Emitted to run fixedUpdate functions.
Emitted to get cameras from objects.
Emitted to get RenderInstances from objects.
Emitted to get lights from objects.
Emitted when the graph for the scene has changed.
Emitted after the update process.
- Overrides:
Emitted after the scene is loaded.
- Overrides:
Emitted when the asset has started loading.
- Overrides:
Fired when the object has been modified.
- Overrides:
Fired when the object's name changes.
Emitted when an object is added.
Emitted when an object is removed.
Emitted after drawing finishes.
Emitted before drawing starts.
Emitted before the scene is loaded.
Emitted before the update function.
Emitted when the scene starts playback.
- Overrides:
Emitted when the state of the asset has changed.
Emitted when an scene stops playback.
- Overrides:
Emitted to run update functions.
Emitted to let objects update render uniforms.
Emitted when the state of XR support changes.
- Overrides:
The URL of the asset.
The scene that owns this scene, is itself.
Is the scene selectable?
- Overrides:
Inidicates whether the asset is Unloaded, Loading, Loaded, or Error. The onStateChange signal will be emitted when the state's value changes.
Is the scene rendered?
Methods
clone(options) → Object
- Overrides:
Creates a clone of this object.
options |
Object | Options for the clone method. |
- Object
configure(o)
- Overrides:
Load the object data from JSON.
o |
Object | The data object to load. |
destroy()
- Overrides:
Destroy any render assets created by the asset.
getPropertyInfo(path) → Object
- Overrides:
Get information about a particular property of this object.
path |
String |
- Object
getRenderAsset(gl) → RenderAsset
- Overrides:
Get a RenderAsset for this asset. If a RenderAsset hadn't been requested for the given GLContext yet, a new one will be created. Otherwise the previous one will be updated and returned.
A RenderAsset is the WebGL version of the asset, such as the GLTexture for an Texture asset. Because the editor has multiple GLContexts, RenderAssets are generated for each GLContext that requires it.
gl |
GLContext |
requestUpdate()
Update the scene, but deferred so that multiple calls to update will be consolidated.
reset()
Clear all content from the Scene.
serialize()
- Overrides:
Serialize the scene to a JSON object.
setModified()
- Overrides:
Fires the objects onModified signal.
toJSON() → Object
- Overrides:
Serialize the object to a JSON structure
- Object
The serialized version of the object.
updateRenderAsset(renderAsset)
- Overrides:
Update the given RenderAsset.
renderAsset |
RenderAsset | The RenderAsset to update. |