Scene authoring, inspectors, diagnostics, and samples for the deterministic GridForge voxel-world library.
Keep grid behavior in the engine-agnostic core. Use this package host where Unity owns the boundary: serialized configurations, scene-owned worlds, topology-aware gizmos, authored blockers, logging, and sample workflows.
Requires Unity 2022.3 or newer. Repository CI currently validates Unity 6000.5.0f1.
Install exactly one variant; they expose overlapping GridForge assemblies.
| Package | Use it when |
|---|---|
com.mrdav30.gridforge |
You want the Standard dependency chain with MemoryPack support. |
com.mrdav30.gridforge.lean |
You want the same Unity-facing API without the MemoryPack runtime dependency. |
In Window → Package Manager, choose + → Install package from git URL… and use one pinned URL:
https://github.com/mrdav30/GridForge-Unity.git?path=/com.mrdav30.gridforge#v9.0.0
https://github.com/mrdav30/GridForge-Unity.git?path=/com.mrdav30.gridforge.lean#v9.0.0
On first import, the package adds the matching FixedMathSharp-Unity and SwiftCollections-Unity dependencies, then asks Unity Package Manager to resolve again. If that process was interrupted, use Tools → GridForge → Repair Dependencies or the matching GridForge.Lean menu.
-
Add
GridWorldComponentto the GameObject that owns the runtime world. -
Add
GridConfigurationSaverand author a rectangular or hex, dense or sparse configuration. -
From a small bootstrap
MonoBehaviour, apply the saved configurations after the world component initializes:_configurationSaver.EarlyApply( _gridWorldComponent.RebuildWorld(_configurationSaver.SpatialGridCellSize));
The getting-started guide includes the complete component.
-
Import the package sample named Demo Scene to explore the complete setup.
-
Add
GridDebugger,GridTraceVisualizer, or blocker components when you need scene visualization and authoring.
GridWorldComponent preserves the explicit ownership model from GridForge
core. In a scene with multiple worlds, assign the intended component on each
debugger, blocker, and trace tool.
- Inspector-friendly rectangular, hex, dense, and sparse grid configuration
- Direct FixedMathSharp field serialization through FixedMathSharp-Unity
- Scene-owned
GridWorldlifecycle - Transform-, collider-, renderer-, and manual-bounds blocker authoring
- Physical-cell and sparse-hole diagnostic gizmos
- Topology-aware trace visualization
- Optional forwarding from
GridForgeLoggerinto Unity logs - A Demo Scene covering the supported workflows
- Getting started
- Grid authoring
- Scene tools and diagnostics
- Unity API reference
- GridForge core guide and API
- Contributing and package maintenance
The Standard and Lean package folders each own their manifest, asmdefs, embedded
core DLL, install README, and serialized sample assets. Shared adapter source is
maintained once under Build/Base and synchronized into both packages.