Namespace: Events

Phaser.Renderer. Events

Events


POST_RENDER

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
Source: src/renderer/events/POST_RENDER_EVENT.js (Line 7)

PRE_RENDER

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
Source: src/renderer/events/PRE_RENDER_EVENT.js (Line 7)

RENDER

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
Source: src/renderer/events/RENDER_EVENT.js (Line 7)

RESIZE

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
Source: src/renderer/events/RESIZE_EVENT.js (Line 7)