ISceneSerializableComponent

This represents a SERIALIZABLE scene component.

This extends Scene Component to add Serialization methods on top.

Hierarchy

Implemented by

Index

Properties

name

Find examples in Playground
name: string

The name of the component. Each component must have a unique name.

scene

Find examples in Playground
scene: Scene

The scene the component belongs to.

Methods

addFromContainer

Find examples in Playground
  • Adds all the element from the container to the scene

    Parameters

    Returns void

dispose

Find examples in Playground
  • dispose(): void

rebuild

Find examples in Playground
  • rebuild(): void
  • Rebuilds the elements related to this component in case of context lost for instance.

    Returns void

register

Find examples in Playground
  • register(): void

removeFromContainer

Find examples in Playground
  • Removes all the elements in the container from the scene

    Parameters

    Returns void

serialize

Find examples in Playground
  • serialize(serializationObject: any): void
  • Serializes the component data to the specified json object

    Parameters

    • serializationObject: any

      The object to serialize to

    Returns void

Generated using TypeDoc