How to stop the rendering of a particular ruletile

Hi all,

Ive been using ruleTiles to draw a path over a grid. At the end of a path it draws an arrow, but i only want to draw an arrow at the last tile of the path and not on the first one.
Disabling the visual component of the first tile without removing it entirely should fix my problem but i havent found a way to do that.

Basicly: using C# how do i make a particular ruleTile invisable without removing it entirely.

You could change the color of that particular Tile on the Tilemap through the following:

tilemap.RemoveTileFlags(Vector3Int.zero, TileFlags.LockColor);
tilemap.SetColor(Vector3Int.zero, Color.clear);

This would produce the following graphically:
9008890--1241710--upload_2023-5-12_15-20-35.png

1 Like