Skip to main content

PreDrawEvent

The 'predraw' event is emitted on actors, scenes, and engine before drawing starts. Actors' predraw happens inside their graphics transform so that all drawing takes place with the actor as the origin.

Hierarchy

Index

Constructors

constructor

Properties

publicctx

publicelapsed

elapsed: number

publicinheritedother

other: Engine<any> | Entity<any> | Scene<unknown> | TileMap | null = null

Other target object for this event

publicself

self: Engine<any> | Entity<any> | Scene<unknown> | TileMap

publicinheritedtarget

target: Engine<any> | Entity<any> | Scene<unknown> | TileMap

Target object for this event.

Accessors

publicinheritedbubbles

  • get bubbles(): boolean
  • set bubbles(value: boolean): void
  • If set to false, prevents event from propagating to other actors. If true it will be propagated to all actors that apply.


    Returns boolean

  • Parameters

    • value: boolean

    Returns void

Methods

publicinheritedstopPropagation

  • stopPropagation(): void
  • Prevents event from bubbling


    Returns void