Phaser API Documentation

<static> RenderDebug(graphics, styleConfig, layer)


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.


name type description
graphics Phaser.GameObjects.Graphics

The target Graphics object to draw upon.

styleConfig Phaser.Types.Tilemaps.DebugStyleOptions

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

layer Phaser.Tilemaps.LayerData

The Tilemap Layer to act upon.

Since: 3.0.0