The Lean Unity adapter package: the same scene-owned worlds, serialized grid authoring, blockers, diagnostics, logging, and Demo Scene without the MemoryPack runtime dependency chain.
Requires Unity 2022.3 or newer.
Documentation · Getting started · Changelog
In Window → Package Manager, choose + → Install package from git URL…:
https://github.com/mrdav30/GridForge-Unity.git?path=/com.mrdav30.gridforge.lean#v9.0.0
Do not install the Standard variant in the same project. In a custom asmdef,
reference GridForge.Lean.Runtime.
-
Add
GridWorldComponentto the GameObject that owns the runtime world. -
Add
GridConfigurationSaverand author a rectangular or hex, dense or sparse configuration. -
From a 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 Demo Scene from this package's Samples tab for working examples of configuration, blockers, diagnostics, tracing, and logging.
The dependency bootstrapper installs the matching Lean FixedMathSharp-Unity and SwiftCollections-Unity packages on first editor load. If resolution was interrupted, choose Tools → GridForge.Lean → Repair Dependencies.
Manual dependency URLs, when needed:
https://github.com/mrdav30/FixedMathSharp-Unity.git?path=/com.mrdav30.fixedmathsharp.lean#v7.0.0
https://github.com/mrdav30/SwiftCollections-Unity.git?path=/com.mrdav30.swiftcollections.lean#v7.0.0
https://github.com/mrdav30/SwiftCollections-Unity.git?path=/com.mrdav30.swiftcollections.fixedmathsharp.lean#v7.0.0