I’ve looked up countless tutorials on how to display a grid on the terrain surface and I’ve pretty much came back to the same conclusion everytime; make a script and attach it to the camera. The application I’m looking to make this for I can’t seem to figure out how to go about it.
Basically, what I’m con templating doing is every square in the grid is its own node, and an object can be assigned to that node. So say you have a village A and its randomly assigned to say Node at x: 430 y:23, then that node holds all the data.
The thing I’m curious about is how to approach it but I’m not sure which way would be the best way. I have 3 solutions in my head that I think will work.
-
Create a script for the camera that displays the grid on the terrain making every 1 by 1 square its own Node in a gameObject array
-
Create a script for the terrain that displays a drawing above the terrain doing the same as the camera
-
Create the world using Quads or Cubes making each Quad its own node. (The problem I have with this one is it seems like it would be very performance heavy. Although this would only be rendered minimally cause this is just for a map and not actual gameplay).
Basically what I’m trying to recreate is a map like the game Tribal Wars just a more 3D view instead of 2D