Phaser API Documentation

onResize(gameSize, baseSize)


The event handler that manages the resize event dispatched by the Scale Manager.


name type description
gameSize Phaser.Structs.Size

The default Game Size object. This is the un-modified game dimensions.

baseSize Phaser.Structs.Size

The base Size object. The game dimensions multiplied by the resolution. The canvas width / height values match this.

Since: 3.16.0