Grids Pro
Grids are used in strategy games, RPG games, puzzle games, and many more. If you need a grid in your game, this package is for you.
Suitable for a variety of games
- Supports 1D, 2D, and 3D grids.
- Supports rectangular and hexagonal grids.
- Provides sophisticated ways to describe grid shapes. Besides using several primitive shapes, you can also combine shapes or transform shapes using a variety of operators.
Suitable for implementing gamelogic and algorithms
- Allows grids to be used as data structures similar to 2D arrays or dictionaries, which may or may not have a physical representation in the game. This makes it easy to keep your logic and representation separate.
- Provides useful games-specific grid algorithms: A* path finding, range finding, connected sets (includes connected line algorithms used in match games), and 2D aggregation (can be used to diffuse AI knowledge of game state over time).
- Provides integer vectors (grid points) and matrices, so linear transformations can be done efficiently in grid spaces. This allows you to work with grids geometrically in ways similar to using floating point vectors and matrices.
Provides editor setup
- Allows you to build grid shapes from graphs in the editor.
- Allows you to build grid maps from graphs in the editor. (This technology allows you to do things such as put a hex grid on a ring or Mobius band).
Advanced Usage
- Comes with algorithms to calculate grid colorings: systematic ways to classify cells into patterns that are useful in many grid algorithms.
- Can be extended to support more exotic grids, additional shape nodes or additional map nodes.
↗️ Documentation
↗️ Samples
↗️ Support
↗️ Blog
Check out our other assets:
Release Notes
Version 4.1.2
⚙️ Editor Improvements
- Added a startup wizard makes it easier to import samples, find documentation, support email, and uninstall instructions.
- The same features are also added to menus Tools/Gamelogic/Grids/.
🔧 Engineering
- Updated to work with Gamelogic Extensions 4.6.0.
Version 4.1.1
🔧 Engineering
- Updated to use Gamelogic Extensions 4.5.0.
Version 4.1.0
🎉 New Features
- Added a new flag on grid builders to force recreation of cells at runtime. This allows for grids that may change shape each time they are computed.
- Added implicit conversions between Gamelogic.Grids2.GridPoint2 and UnityEngine.Vector2Int, and between Gamelogic.Grids2.GridPoint3 and UnityEngine.Vector3Int.
- Added explicit conversion from UnityEngine.Vector2 to Gamelogic.Grids2.GridPoint2, and from UnityEngine.Vector3 to Gamelogic.Grids2.GridPoint3.
- Made it possible for nodes to specify their width (see Gamelogic.Grids2.Graph.BaseNode.Width), and made nodes with Gamelogic.Grids2.Graph fields wider. Nodes also adjust their width dynamically based on the Gamelogic.Grids2.Graph.BaseNode.Width property.
- Made it possible for GraphWindows to specify the order of groups by implementing the Gamelogic.Grids2.Graph.Editor.GraphWindow1.GetOrder method.
🐞 Bug Fixes
- Improved Gamelogic.Grids2.Graph.Editor.GraphPropertyDrawer to avoid Stack Empty errors in Unity 6000.
- Fixed a System.NullReferenceException in Gamelogic.Grids2.GridBuilder when the shape graph has not been assigned.
- Made Gamelogic.Grids2.Graph.MultiLayerShapeNode, Gamelogic.Grids2.Graph.OrthographicProjectionShape3Node, and Gamelogic.Grids2.Graph.SimpleLayerShapeNode recompute their layers dynamically when needed. This ensures consistency when layers are dynamic.
- Gamelogic.Grids2.Graph.Shape1Graph, Gamelogic.Grids2.Graph.Shape2Graph, Gamelogic.Grids2.Graph.Shape3Graph, and Gamelogic.Grids2.Graph.SpaceMapGraph now recompute their shapes properly during alignment. Previously, dynamic grids could misalign due to mismatched shape computations.
Version 4.0.0
🎉 New Features
- It is now possible to change the name of all nodes in graphs.
🎨 UI
- Improve the look and feel of the graph editor windows.
- Shape and space map graphs in the inspector now have Create / Edit buttons to open the graph editor.
🧪 Samples
- Added a new sample: 3D Tiled Grid that shows how to use custom hex cells with grid builders, and how to use ray casting to support grid mouse input.
🔧 Engineering
- Gamelogic.Grids2.Graph.Editor.GraphEditorUtils.MakeNewGraph returns null if the graph was not saved.
- Added type parameters to Gamelogic.Grids2.Graph.Editor.GraphPropertyDrawer.
Version 3.2.1
🔧 Engineering
- Updated to Gamelogic Extensions 4.4.2.
🧪 Samples
- Updated all grid colors to new brand colors (some samples has empty color lists causing them not to work).
Version 3.2.0
🐞 Bug Fixes
- Now looks for nodes in all available assemblies, which means user-supplied nodes are now supported.
🔧 Engineering
- Updated to use Extensions 4.3.0.Updated all classes and samples to use the new Validation attributes instead of the obsolete ones.
🧪 Samples
- Added Mobius strip examples.
- Added colors to the RectMesh and HexMesh samples (in BasicSetup/BasicEditor).
📚 Documentation
- Added snippets to show how to make your own space map nodes and shape nodes.
Version 3.1.0
- Added Hex Sphere Illusion sample.
- Adjusted the three grid game samples.
Version 3.0.1
- Fixed issues with some of the samples.
Version 3.0.0
- Restructured asset as a Unity package.
- Updated to use Extensions 3.0.0.
- Updated to use Unity 2019.4.14 LSF.