TileComponent

Each tile can have a scriptable component.

TileComponent script

For how to write TileComponent script, refer to TileComponent script.

How to add to Tile

  • Select TileSet from the Project window and display it in the Inspector.
  • Select Tile from Tiles.
  • Click the Add Component button in Tile Settings.
  • Select the TileComponent you want to add from the script selection window.