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