Sprite

Hierarchy

  • Sprite

Index

Constructors

constructor

Properties

actionManager

actionManager: ActionManager

angle

angle: number

animations

animations: Animation[]

cellIndex

cellIndex: number

color

color: Color4

disposeWhenFinishedAnimating

disposeWhenFinishedAnimating: boolean

height

height: number

invertU

invertU: number

invertV

invertV: number

isPickable

isPickable: boolean

isVisible

isVisible: boolean

Gets or sets a boolean indicating if the sprite is visible (renderable). Default is true

name

name: string

position

position: Vector3

size

size: number

width

width: number

Methods

dispose

  • dispose(): void
  • Returns void

playAnimation

  • playAnimation(from: number, to: number, loop: boolean, delay: number, onAnimationEnd: function): void
  • Parameters

    • from: number
    • to: number
    • loop: boolean
    • delay: number
    • onAnimationEnd: function
        • (): void
        • Returns void

    Returns void

stopAnimation

  • stopAnimation(): void
  • Returns void

Generated using TypeDoc