Phaser API Documentation

  Version: 
<static> GetBounds(gameObject, [output])

Description:

Returns the unrotated bounds of the Game Object as a rectangle.

Parameters:

name type arguments description
gameObject Phaser.GameObjects.GameObject

The Game Object to get the bounds value from.

output object | Phaser.Geom.Rectangle <optional>

An object to store the values in.

Returns:
Description:
  • The bounds of the Game Object.
Type:
Since: 3.24.0