Phaser API Documentation

  Version: 
setSize(width, height, [resizeInput])

Description:

Sets the size of this Game Object.

Parameters:

name type arguments Default description
width number

The width of this Game Object.

height number

The height of this Game Object.

resizeInput boolean <optional> true

If this Zone has a Rectangle for a hit area this argument will resize the hit area as well.

Returns:
Description:

This Game Object.

Since: 3.0.0