Hi, I’m new to the Unity and I’m thinking of making a TBS game. The combat should look like the good old X-Com: UFO Defence.
The questions I’ve encountered are:
- How do I seperate my terain into squares(hexes)?
- How do I highlight them, when the mouse is over it?
- How do I understand on which square the mouse was on, when the player pressed left mouse button.
Thank you 
Hi, welcome to the forum!
The easiest way to divide the space into a square grid is to use the existing coordinate space. If you align the gridlines with two of the major axes (say X and Z) and place the origin of the grid at <0,0,0> in world space, the grid will correspond to world coordinates. Say if the grid squares are five units wide, the gridlines will occur at position 0, 5, 10, etc, along the X and Z axes. To determine which square is under the mouse, use a raycast (as explained in this thread and take the hit point from the returned RaycastHit object. Divide the X and Z coordinates each by the width of the grid square to find which square the mouse is over.
A hex grid is a bit more difficult. There is some code in this thread to position objects in a hexagonal grid, but it doesn’t currently have any code to identify the hex position from a coordinate. Ask in this thread if you would like this feature to be added and I’ll see what I can do.
andeeee, thank you 
I think, I’ll try the simple squares for now 