How to paint a tilemap with different colors?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kudcrafts

I’m trying to make a hex tilemap game, and I want to paint each cell with different colors to show property of them. I know godot can not modulate single cell in tilemap so how to achieve it?
I came up with these two methods:

  1. A shader drawing large amount of hex, it might be fastest but for now godot can not support uniform array for shader.
  2. Create a lot of tiles for different colors in tileset, but it can not be so flexible and I’m worried about its performance.
    I’m just a noob so could you tell me any better methods?
:bust_in_silhouette: Reply From: Help me please

Yes!
Godot can modulate single tile just go to Selected Tile in the inspector and set its modulate colour

Oh I mean modulate a specific cell of tilemap not tile of tileset.
For now Godot can not modulate a single cell of tilemap so I want to find some methods to achieve the same effect.

Kudcrafts | 2021-06-13 12:31

Sorry I misunderstood your question

Help me please | 2021-06-13 13:59