Create squares and draw them on terrain

Some of you’ve might played Clash of Clans or Simpsons tapped out? I’m not trying to make a game like them, but they have one feature I like. They’re grid system. I’m familiar with the math around squares and grids, a * a = b(square). So that’s no problem for me. My real problem is how I would transfer this into unity. Say I’d like the squares to be 3 units times 3 units, which makes 9 units in area. How do I create this in Unity and loop it over the terrain? This would be good to know, because I need to create a grid system for my game, but as I said, the game is not going to be as any of those examples, it’s just an idea how the grid would be. Any examples, tutorials or just logic is appreciated, I just want to get moving with this. Also, I prefer code.

Thanks!

Make a camera. Position it at -10, -10, -10. Have it look at 0, 0, 0.

Now make some Planes. Texture them with grass and stuff. Duplicate and place as many as you need for your game map.

Now make a script called TerrainTile, or something like that. Give it an OnMouseDown() function. Now you can handle mouse clicks and stuff. Put that script on all of your planes.

Good start?