Options
All
  • Public
  • Public/Protected
  • All
Menu

The sprite renderer component is used to render a sprite.

Hierarchy

Index

Constructors

constructor

Properties

Private _texture

_texture: HTMLImageElement

enabled

enabled: boolean

Is the component enabled.

entity

entity: Entity

Entity that this component is attached to.

initialized

initialized: boolean = false

Is the sprite renderer initialized.

This is used to check if the sprite renderer and its texture is loaded and ready to be used.

Accessors

id

  • get id(): string

texture

  • get texture(): HTMLImageElement
  • set texture(texture: HTMLImageElement): void

Methods

awake

  • awake(): void

lateUpdate

  • lateUpdate(): void

start

  • start(): void

update

  • update(): void

Generated using TypeDoc