Phaser API Documentation

  Version: 
Event: PRE_RENDER
Phaser.Core.Events.PRE_RENDER
PRE_RENDER

Description:

The Game Pre-Render Event.

This event is dispatched immediately before any of the Scenes have started to render.

The renderer will already have been initialized this frame, clearing itself and preparing to receive the Scenes for rendering, but it won't have actually drawn anything yet.

Parameters:

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

A reference to the current renderer being used by the Game instance.

Since: 3.0.0