Debugging Your Tileset
When a tile does not act as you expect, you can view it in the tileset inspector.
Some common issues when developing tiles are that the GridPlacer
does not place it on your tiles appropriately, or never places one tile next to another but you expect it should.
Open the Wildtile tileset debugger by clicking through the menu bar → Window
→ Wildtile
→ Tileset Inspector
.
Tip
The tileset inspector acts like any other Unity window - you can move it freely or dock it to a panel in the editor.
At the top of the tileset inspector, you can select which tileset to view. Click and drag your importer asset from the project window to the Tileset field.
The inspector will now show all the tiles that you have imported. Double click on a tile to open the inspector stage in your scene view.
Inspection Modes
The inspector stage contains your tile model and, by default, a neighbouring tile. This view is the most common while debugging tiles.
You can change the inspection mode between Vertex Contents
, Connections
, Triangles on module face
and Outside of bounds
. For further information, view their respective pages:
Reimport and Refresh
The buttons at the top of the inspector provide quick access to reloading the tileset.
The Reimport button is a shortcut to the Process Models button on the tileset importer asset. Reimporting using this button or using the Process Models button on the asset will automatically refresh the tileset inspector.
The Refresh button provides a sure-fire way of refreshing the tileset inspector in case the tileset has changed and the inspector was not notified (e.g. because of an error in the import script).