Phaser API Documentation

  Version: 
onResize(width, height)

Description:

This method is called once when this pipeline has finished being set-up at the end of the boot process. By the time this method is called, all of the shaders are ready and configured. It's also called if the renderer changes size.

Parameters:

name type description
width number

The new width of this WebGL Pipeline.

height number

The new height of this WebGL Pipeline.

Since: 3.50.0