Phaser API Documentation

  Version: 
setSize(width, [height])

Description:

Sets the width and height of the Rectangle.

Parameters:

name type arguments Default description
width number

The width to set the Rectangle to.

height number <optional> width

The height to set the Rectangle to.

Returns:
Description:

This Rectangle object.

Since: 3.0.0