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 int

  • Column int

Events

  • On Coordinates Changed UnityEvent

    The event is raised when coordinates are changed.