Hexagonal Grid Coordinates
Each game object under the EasyLayout control with the Hex layout has a HexCoordinates component.
It provides access to the coordinates of the object in the grid in the different coordinate systems: OffsetCoordinates and CubeCoordinates.
Also, this component provides coordinates for layout in case Coordinates is Read mode.
See more in the guide <https://www.redblobgames.com/grids/hexagons/> about hexagonal grids.
Note
You can use HexCoordinatesDebug component with TextAdapter component to display cells coordinates for the debug.
Options
Row
intColumn
int
Events
On Coordinates Changed
UnityEventThe event is raised when coordinates are changed.
Properties
Offset
OffsetCoordinatesReadonly.
Cube
CubeCoordinatesReadonly.