Phaser API Documentation

  Version: 
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Event: RENDER
Phaser.Scenes.Events.RENDER
RENDER

Description:

The Scene Systems 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:

  1. PRE_UPDATE
  2. UPDATE
  3. The Scene.update method is called, if it exists
  4. POST_UPDATE
  5. PRE_RENDER
  6. RENDER

Listen to it from a Scene using this.events.on('render', listener).

A Scene will only render if it is visible.

By the time this event is dispatched, the Scene will have already been rendered.

Parameters:

name type description
renderer Phaser.Renderer.Canvas.CanvasRenderer | Phaser.Renderer.WebGL.WebGLRenderer

The renderer that rendered the Scene.

Since: 3.0.0