Lean Unity adapter package for GridForge.
Install through Unity Package Manager:
https://github.com/mrdav30/GridForge-Unity.git?path=/com.mrdav30.gridforge.lean
Install this package when you want the same Unity integration as the standard
package without the MemoryPack dependency chain. Prefer it for Burst AOT
projects or projects that provide their own serialization stack. Do not install
it with com.mrdav30.gridforge.
On first editor load, the included dependency bootstrapper attempts to add the
required lean git dependencies to Packages/manifest.json. If Unity does not
resolve them automatically, use Tools > GridForge.Lean > Repair Dependencies
or install these URLs manually:
https://github.com/mrdav30/FixedMathSharp-Unity.git?path=/com.mrdav30.fixedmathsharp.lean
https://github.com/mrdav30/SwiftCollections-Unity.git?path=/com.mrdav30.swiftcollections.lean
https://github.com/mrdav30/SwiftCollections-Unity.git?path=/com.mrdav30.swiftcollections.fixedmathsharp.lean
- Add
GridWorldComponentto the scene object that owns the runtime world. - Add
GridConfigurationSaverto author saved grid configurations. - Add rectangular, hex, dense, or sparse configurations in the inspector.
- Apply the saved configurations at startup with
GridConfigurationSaver.EarlyApply(world), or use the sampleSceneGridManager. - Assign the intended
GridWorldComponentonBlockerComponent,GridDebugger, andGrid Trace Visualizerwhen a scene has multiple worlds.
The package sample named Demo Scene shows the workflows in Unity:
rectangular grids, hex grids, sparse grids, diagnostics, blockers, tracing, and
optional Unity logging.
- Unity guide: ../.docs/wiki/GridForge-Unity-User-Guide.md
- Package selection and maintenance: ../README.md
- Core GridForge wiki: Getting Started, Common Workflows, Sparse Grid Storage, Grid Diagnostics and Geometry, Diagnostics and Logging
Unity compatibility: 2022.3+