A downloadable tool

Download NowName your own price

Custom Hex Grid Tool (Unity)

A lightweight and practical grid utility designed to simplify level design and grid-based mechanics in Unity projects. This tool provides essential methods for grid validation, coordinate conversion, and value manipulation.

Core Methods

  • bool IsPointInsideGrid(int x, int y) Validates whether the given grid coordinates (x, y) fall within the defined grid boundaries. Prevents out-of-range access and ensures safe operations.
  • void OnMouseIsDown() Detects and processes the current mouse position on click, allowing selection or interaction with a specific grid cell.
  • void GetXY(Vector3 worldPosition, out int x, out int y) Converts a world-space position into corresponding grid indices. Useful for translating mouse position or object position into grid coordinates.
  • void SetValue(int x, int y, int value) Assigns a new value to the specified grid cell. Enables dynamic grid updates during gameplay or editor tooling.
  • int GetValue(int x, int y) Retrieves the stored value at the given grid coordinates. Useful for validation, pathfinding, tile logic, or state checks.
Published 9 days ago
StatusReleased
CategoryTool
AuthorNishanth Kulal
Tagsgrid, tools, Unity, unity-tools

Download

Download NowName your own price

Click download now to get access to the following files:

HexGrid.unitypackage 30 kB

Leave a comment

Log in with itch.io to leave a comment.