The Customizable Game Grid is a Unity tool that generates grids as an array of Vector3 positions of grid points. It can be used to create grid-based games with features such as building, AI pathfinding, grid-based player movement, and grid-based maps. The grid can be visualized using lines and has utility methods for getting closest grid points, adjacent grid points, and more. Objects can be spawned on the grid using various spawning modes, making it ideal for quick creation of grid-based maps.
Examples of usage include:
β’ Getting world positions of grid points
β’ Basis for path-finding algorithms like A*
β’ Grid based movement in RTS games
β’ Grid based building in village games or sandbox games
β’ Quick creation of static or procedural grid based maps
Create grids using the C# class Grid2D or the MonoBehaviour wrapper Grid2DMono.
Set origin of the grid to be a transform or fixed position/rotation (transform can be moved during runtime).
Get positions of grid points both in grid space or world space.
Get closest grid point to a given world space position.
Visualize grids with lines (drawn using Gizmos in Editor and GL during runtime).
Spawn objects (primitives or custom prefabs) using a wide-variety of spawning modes such as all indices, checkered, specified indices, etc.





