The Scene Systems Pre-Render Event.
This event is dispatched by a Scene during the main game loop step.
The event flow for a single step of a Scene is as follows:
PRE_UPDATE
UPDATE
Scene.update
method is called, if it existsPOST_UPDATE
PRE_RENDER
RENDER
Listen to this event from a Scene using this.events.on('prerender', listener)
.
A Scene will only render if it is visible.
This event is dispatched after the Scene Display List is sorted and before the Scene is rendered.
name | type | description |
---|---|---|
renderer | Phaser.Renderer.Canvas.CanvasRenderer | Phaser.Renderer.WebGL.WebGLRenderer |
The renderer that rendered the Scene. |