Phaser API Documentation

  Version: 
getBounds([camera], [output])

Description:

Gets the world rectangle bounding box for the tile, factoring in the layers position, scale and scroll.

Parameters:

name type arguments description
camera Phaser.Cameras.Scene2D.Camera <optional>

The Camera to use to perform the check.

output Phaser.Geom.Rectangle <optional>

Optional Rectangle object to store the results in.

Returns:
Description:

The bounds of this Tile.

Type:
Since: 3.0.0
Source: src/tilemaps/Tile.js (Line 472)