Phaser API Documentation

  Version: 
<static> StaggeredCullBounds(layer, camera)

Description:

Returns the bounds in the given layer that are within the camera's viewport. This is used internally by the cull tiles function.

Parameters:

name type description
layer Phaser.Tilemaps.LayerData

The Tilemap Layer to act upon.

camera Phaser.Cameras.Scene2D.Camera

The Camera to run the cull check against.

Returns:
Description:

An object containing the left, right, top and bottom bounds.

Type:
  • object
Since: 3.50.0