I am supposed to have a map, which in this case is the Gulf of Aden, and I am to have a 400x100 grid that sets on top of the map. I tried it by just having a prefab of a square and instantiating them, and it does create the grid, but it has its problems and I was wondering if there is an easier way to do this
Hi,
I have done this in the past - I am still fairly new to Unity but I used this as a guide, look at the code etc and made my own version.
probably many ways. Since i do art and don’t write code, I would make plane with a transparent texture.
Since we have no idea what those problems are we’re unable to give any specific advice to help.
We also have no idea of the context to give relevant advice. Is this a top-down game? What does the “map” look like?Start with whether it’s flat or not, since that’s probably the most important thing. How much of the map can the player see at once? Do you need to be able to change the colour of grid cells, or anything like that?
A screenshot would probably be helpful.
I would look into painting the grid using shaders.
But.
It really depends on what you’re trying to do. And so far you haven’t provided a lot of information.
You could just do it with a single square texture that you tile. Instancing a square over and over is another super easy way.
Other ways all depend on what exactly your needs and problems are.