Phaser API Documentation

  Version: 
setParentSize(width, height)

Description:

This method will set the size of the Parent Size component, which is used in scaling and centering calculations. You only need to call this method if you have explicitly disabled the use of a parent in your game config, but still wish to take advantage of other Scale Manager features.

Parameters:

name type description
width number

The new width of the parent.

height number

The new height of the parent.

Returns:
Description:

The Scale Manager instance.

Since: 3.16.0