SimpleScene
A basic 3D scene to add objects hierarchically, and easily dispose them when you are finished with it.
Extends
Extended by
Implements
Configurable
<SimpleSceneConfigManager
,SimpleSceneConfig
>
Properties
ambientLights
ambientLights:
Map
<string
,AmbientLight
>
The set of ambient lights managed by this scene component.
Inherited from
config
config:
SimpleSceneConfigManager
Implementation of
currentWorld
currentWorld:
null
|World
=null
The current world this item is associated with. It can be null if no world is currently active.
Inherited from
directionalLights
directionalLights:
Map
<string
,DirectionalLight
>
The set of directional lights managed by this scene component.
Inherited from
isSetup
isSetup:
boolean
=false
Implementation of
onDisposed
readonly
onDisposed:Event
<unknown
>
Inherited from
onSetup
readonly
onSetup:Event
<unknown
>
Implementation of
onWorldChanged
readonly
onWorldChanged: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
three
three:
Scene
The underlying Three.js scene object. It is used to define the 3D space containing objects, lights, and cameras.
Overrides
Methods
isConfigurable()
isConfigurable():
this is Configurable<any, any>
Whether is component is Configurable.
Returns
this is Configurable<any, any>
Inherited from
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
isUpdateable()
isUpdateable():
this is Updateable
Whether is component is Updateable.
Returns
this is Updateable
Inherited from
setup()
setup(
config
?):void
Parameters
Parameter | Type |
---|---|
config ? | Partial <SimpleSceneConfig > |
Returns
void