Options
All
  • Public
  • Public/Protected
  • All
Menu

This represents a SERIALIZABLE scene component.

This extends Scene Component to add Serialization methods on top.

Hierarchy

Implemented by

Index

Properties

name: string

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

scene: Scene

The scene the component belongs to.

Methods

  • Adds all the elements from the container to the scene

    Parameters

    Returns void

  • dispose(): void
  • Disposes the component and the associated ressources.

    Returns void

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

    Returns void

  • register(): void
  • Register the component to one instance of a scene.

    Returns void

  • removeFromContainer(container: AbstractScene, dispose?: boolean): void
  • 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

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

    Parameters

    • serializationObject: any

      The object to serialize to

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme