Class LayerSceneComponent
Hierarchy
- LayerSceneComponent
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
Creates a new instance of the component for the given scene
Parameters
Optional scene: Scene
Defines the scene to register the component in
Returns LayerSceneComponent
Properties
Readonly nameSearch playground for name
The component name helpful to identify the component in the list of scene components.
sceneSearch playground for scene
The scene the component belongs to.
Methods
add From ContainerSearch playground for addFromContainer
Adds all the elements from the container to the scene
Parameters
container: AbstractScene
the container holding the elements
Returns void
disposeSearch playground for dispose
Disposes the component and the associated resources.
Returns void
rebuildSearch playground for rebuild
Rebuilds the elements related to this component in case of context lost for instance.
Returns void
registerSearch playground for register
Registers the component in a given scene
Returns void
remove From ContainerSearch playground for removeFromContainer
Removes all the elements in the container from the scene
Parameters
container: AbstractScene
contains the elements to remove
Optional dispose: boolean
if the removed element should be disposed (default: false)
Returns void
Defines the layer scene component responsible to manage any layers in a given scene.