Phaser API Documentation

  Version: 
renderDebug(graphics, [styleConfig])

Description:

Draws a debug representation of the layer to the given Graphics. This is helpful when you want to get a quick idea of which of your tiles are colliding and which have interesting faces. The tiles are drawn starting at (0, 0) in the Graphics, allowing you to place the debug representation wherever you want on the screen.

Parameters:

name type arguments description
graphics Phaser.GameObjects.Graphics

The target Graphics object to draw upon.

styleConfig Phaser.Types.Tilemaps.StyleConfig <optional>

An object specifying the colors to use for the debug drawing.

Returns:
Description:

This Tilemap Layer object.

Since: 3.50.0