Unreal Engine Game Grids
A downloadable plugin for Windows
Unreal Engine plug-in for square and hex grids and simple A*(Star) pathfinding. An instance of a grid is managed by an Actor that holds an array of the cells (points/nodes) on the grid. There are helper functions in both C++ and Blueprints for you to manipulate the grid, it's cells and your gameplay actors. Made and tested in Unreal Engine 4.27, 5.1+.
Notice:
This plug-in is available for free on github but you can buy it here to support me making and maintaining this and other resources.
What you get by buying this here instead of grabbing the it from github:
- You support me making more of these
- You get the compiled version of the plug-in and don’t have to build them yourself
- You get any extra projects or examples not included on github (If there is any. There are no extras yet)
- I can better maintain and add more features
Current Features
☑️ Async grid generation
☑️ Async A* pathfinding
☑️ Non iterative cell validation
☑️ World Location <-> Grid coordinates conversion
☑️ GameplayTag based filtering for cell retrieval
☑️ Grid Movement Component
☑️ Cell and Cell Vertex location data
🟦 Hexagon version
🟦 Common helper cell selection operations (think trace/overlap but for cells)
🟦 WFC (Wave Function Collapse) base class
🟦 Map Importing and Exporting
Setup
- Install plug-in to your project's plug-in folder and enable it by going to Edit > Plugins. e.g:
MyProject\Plugins\Dn2GameGrids
- Add a BoxGridActor to your level or create a blueprint with BoxGridActor as its parent class and place in your level.
- In the details panel of your placed BoxGridActor or class defaults panel of your blueprint, under the Grid category, check
bAutoGenerate
, and set the extents or your grid. - Alternately, you can skip step 3 and use the blueprint node
Update Grid Async
to build your base grid at runtime.Update Grid Async
overwrites the current grid if there is one. - Additionally
Update Grid Async
, on completion fires off Blueprint and C++ events with the resulting grid array, grid extents and cell size.
Purchase
In order to download this plugin you must purchase it at or above the minimum price of $5 USD. You will get access to the following files: