Phaser API Documentation

  Version: 
cull([camera])

Description:

Returns the tiles in the given layer that are within the cameras viewport. This is used internally during rendering.

Parameters:

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

The Camera to run the cull check against.

Returns:
Description:

An array of Tile objects to render.

Type:
Since: 3.50.0