I am really new to Unity and I managed to get a map going for turn based game in 3D scene editor. I just created a simple box with texture on it. Ideally whenever it is player’s unit’s turn, I want the grid tiles to be highlighted to indicate where the unit can move. I’m guessing I have to use the script to achieve this. Do I draw the translucent highlight with the code as well? Or what is the best way to go about this?
Probably this
Then again, my answer to everything is more or less find a plugin that can do it, which might not always be the best answer.
I’ve only tried grid once in a very quick test, together with playmaker, basically what I did generating the grid at runtime by instancing out a prefab of a square. And then naming that square something sensible, based on position, like “square_X1Y2”, in a way that I could reference it later. On this instance of the prefab you could also store various information, like if containing a unit.