Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SpriteSceneComponent

Defines the sprite scene component responsible to manage sprites in a given scene.

Hierarchy

  • SpriteSceneComponent

Implements

Index

Constructors

Properties

Methods

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 SpriteSceneComponent

Properties

Readonly nameSearch playground for name

name: "Sprite" = "Sprite"

The component name helpfull to identify the component in the list of scene components.

sceneSearch playground for scene

scene: Scene

The scene the component belongs to.

Methods

disposeSearch playground for dispose

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

    Returns void

rebuildSearch playground for rebuild

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

    Returns void

registerSearch playground for register

  • register(): void
  • Registers the component in a given scene

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method