Phaser API Documentation

  Version: 
isEmpty()

Description:

Determines if the Rectangle is empty. A Rectangle is empty if its width or height is less than or equal to 0.

Returns:
Description:

true if the Rectangle is empty. A Rectangle object is empty if its width or height is less than or equal to 0.

Type:
  • boolean
Since: 3.0.0