Phaser API Documentation

  Version: 
Filter
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
Namespace: Events
Phaser.Renderer.Events

Events

POST_RENDER
Focus
Focus

Description:

The Post-Render Event.

This event is dispatched by the Renderer when all rendering, for all cameras in all Scenes, has completed, but before any pending snap shots have been taken.

Since: 3.50.0
Focus
Focus
PRE_RENDER
Focus
Focus

Description:

The Pre-Render Event.

This event is dispatched by the Phaser Renderer. This happens right at the start of the render process, after the context has been cleared, the scissors enabled (WebGL only) and everything has been reset ready for the render.

Since: 3.50.0
Focus
Focus
RENDER
Focus
Focus

Description:

The Render Event.

This event is dispatched by the Phaser Renderer for every camera in every Scene.

It is dispatched before any of the children in the Scene have been rendered.

Parameters:

name type description
scene Phaser.Scene

The Scene being rendered.

camera Phaser.Cameras.Scene2D.Camera

The Scene Camera being rendered.

Since: 3.50.0
Focus
Focus
RESIZE
Focus
Focus

Description:

The Renderer Resize Event.

This event is dispatched by the Phaser Renderer when it is resized, usually as a result of the Scale Manager resizing.

Parameters:

name type description
width number

The new width of the renderer.

height number

The new height of the renderer.

Since: 3.50.0
Focus
Focus