C#/Unity SDK - Zenject/Extenject support for SpacetimeDBNetworkManager
RejectedMay 27, 2026It would be pretty cool if the SDK could ship a separate Zenject-/Extenject compatible [network manager](https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/blob/release/latest/src/SpacetimeDBNetworkManager.cs) implementation (probably locked behind a symbol like `ZENJECT_DEFINED`) which would allow for a more natural integration of the SDK into an already zenject-based unity project. The new implementation would be straightforward, [removing the singleton logic entirely](https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/blob/release/latest/src/SpacetimeDBNetworkManager.cs#L13-L27), replacing Update/OnDestroy with [ITickable](https://github.com/modesttree/Zenject?tab=readme-ov-file#itickable) and [IDisposable](https://github.com/modesttree/Zenject?tab=readme-ov-file#idisposable) and swapping instance access here: [1](https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/blob/d76b0922be2325db953fe93b1300e4d0d3e443ec/src/SpacetimeDBClient.cs#L40), [2](https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/blob/d76b0922be2325db953fe93b1300e4d0d3e443ec/src/SpacetimeDBClient.cs#L186). If there's enough interest, I would be down to write a pull request for this.