Interface ISceneSerializableComponent
Hierarchy
- ISceneComponent
- ISceneSerializableComponent
Implemented by
Index
Properties
nameSearch playground for name
The name of the component. Each component must have a unique name.
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 ressources.
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
Register the component to one instance of a 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
serializeSearch playground for serialize
Serializes the component data to the specified json object
Parameters
serializationObject: any
The object to serialize to
Returns void
This represents a SERIALIZABLE scene component.
This extends Scene Component to add Serialization methods on top.