I am trying to make a simple 2D square grid for a map UI. The game itself is also 2D and the player can only make discrete movements between the square, but the player view is first person (you see a painted view of the scenery at that square), so the 2D square map is just for the map, not the main game view.
So the map would look something like this:
This would be used in the minimap, and also in a semi-fullscreen overlay map view that the player can pull up.
What is the best way to do this in Unity?
I tried using a GridLayoutGroup and adding one Image child for each square. For a simple 100x100 map, though, this leads to 10,000 game objects each just representing one tile in the map.
It seems like this is what Tilemaps would be good at, but I don't see a way to use Tilemaps in the minimap or an overlay on top of the main view.