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: PRE_RENDER
Phaser.Cameras.Scene2D.Events.PRE_RENDER
PRE_RENDER

Description:

The Camera Pre-Render Event.

This event is dispatched by a Camera instance when it is about to render. It is only dispatched if the Camera is rendering to a texture.

Listen to it from a Camera instance using: camera.on('prerender', listener).

Parameters:

name type description
camera Phaser.Cameras.Scene2D.BaseCamera

The camera that is about to render to a texture.

Since: 3.0.0