Phaser API Documentation

onResize(width, height)


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.


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