Phaser API Documentation

  Version: 
renderDebugFull(graphics, [styleConfig])

Description:

Draws a debug representation of all layers within this Tilemap to the given Graphics object.

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 instance.

Since: 3.17.0
Source: src/tilemaps/Tilemap.js (Line 1960)