TilemapLayer#debugSettings

debugSettings

Settings used for debugging and diagnostics.

Properties:
Name Type Argument Description
missingImageFill string <nullable>

A tile is rendered as a rectangle using the following fill if a valid tileset/image cannot be found. A value of null prevents additional rendering for tiles without a valid tileset image. This takes effect even when debug rendering for the layer is not enabled.

debuggedTileOverfill string <nullable>

If a Tile has Tile#debug true then, after normal tile image rendering, a rectangle with the following fill is drawn above/over it. This takes effect even when debug rendering for the layer is not enabled.

forceFullRedraw boolean

When debug rendering (debug is true), and this option is enabled, the a full redraw is forced and rendering optimization is suppressed.

debugAlpha number

When debug rendering (debug is true), the tileset is initially rendered with this alpha level. This can make the tile edges clearer.

facingEdgeStroke string <nullable>

When debug rendering (debug is true), this color/stroke is used to draw "face" edges. A value of null disables coloring facing edges.

collidingTileOverfill string <nullable>

When debug rendering (debug is true), this fill is used for tiles that are collidable. A value of null disables applying the additional overfill.

Source code: tilemap/TilemapLayer.js (Line 133)

doc_phaser
2017-02-14 11:15:56
Comments
Leave a Comment

Please login to continue.