abstract BaseScene
Abstract class representing a base scene in the application. All scenes should use this class as a base.
Extends
Extended by
Implements
Properties
ambientLights
ambientLights:
Map<string,AmbientLight>
The set of ambient lights managed by this scene component.
directionalLights
directionalLights:
Map<string,DirectionalLight>
The set of directional lights managed by this scene component.
onDisposed
readonlyonDisposed:Event<unknown>
Implementation of
onWorldChanged
readonlyonWorldChanged:Event<object>
Event that is triggered when a world is added or removed from the worlds map.
The event payload contains the world instance and the action ("added" or "removed").
Type declaration
action
action:
"added"|"removed"
world
world:
World
Inherited from
BaseWorldItem . onWorldChanged
three
abstractthree:Object3D<Object3DEventMap>
Abstract property representing the three.js object associated with this scene. It should be implemented by subclasses.
Accessors
currentWorld
setcurrentWorld(value):void
The current world this item is associated with. It can be null if no world is currently active.
Parameters
| Parameter | Type |
|---|---|
value | null | World |
Methods
dispose()
dispose():
void
Returns
void
Implementation of
isConfigurable()
isConfigurable():
this is Configurable<any, any>
Whether is component is Configurable.
Returns
this is Configurable<any, any>
Inherited from
BaseWorldItem . isConfigurable
isDisposeable()
isDisposeable():
this is Disposable
Whether is component is Disposable.
Returns
this is Disposable
Inherited from
isHideable()
isHideable():
this is Hideable
Whether is component is Hideable.
Returns
this is Hideable
Inherited from
isResizeable()
isResizeable():
this is Resizeable
Whether is component is Resizeable.
Returns
this is Resizeable
Inherited from
isSerializable()
isSerializable():
this is Serializable<any, Record<string, any>>
Whether is component is Serializable.
Returns
this is Serializable<any, Record<string, any>>
Inherited from
BaseWorldItem . isSerializable
isUpdateable()
isUpdateable():
this is Updateable
Whether is component is Updateable.
Returns
this is Updateable