Class LensFlareSystemSceneComponent
Implements
Constructors
constructor
-
Creates a new instance of the component for the given scene
Parameters
- scene: Scene
Defines the scene to register the component in
Returns LensFlareSystemSceneComponent
- scene: Scene
Properties
Readonlyname
name: "LensFlareSystem" = SceneComponentConstants.NAME_LENSFLARESYSTEM
The component name helpful to identify the component in the list of scene components.
scene
The scene the component belongs to.
Methods
add From Container
-
Adds all the elements from the container to the scene
Parameters
- container: IAssetContainer
the container holding the elements
Returns void
- container: IAssetContainer
dispose
-
Disposes the component and the associated resources.
Returns void
rebuild
-
Rebuilds the elements related to this component in case of context lost for instance.
Returns void
register
-
Registers the component in a given scene
Returns void
remove From Container
-
Removes all the elements in the container from the scene
Parameters
- container: IAssetContainer
contains the elements to remove
Optionaldispose: booleanif the removed element should be disposed (default: false)
Returns void
- container: IAssetContainer
serialize
-
Serializes the component data to the specified json object
Parameters
- serializationObject: any
The object to serialize to
Returns void
- serializationObject: any
Defines the lens flare scene component responsible to manage any lens flares in a given scene.