Zenject Demo
Overview
The project demonstrates a small game world built on World Graph Editor, where every scene transition is driven through a Zenject-managed TransitionService. Use it as a reference for integrating WGE into a DI-first codebase.
What's inside
- A
WorldGraphContainerasset with 4 sample scenes connected via undirected and one-way edges. - A custom
TransitionServiceregistered in theProjectContextinstaller. - Scene-bound
SceneContextinstallers showing per-scene bindings.
How to run
- Download the archive above and extract it.
- Open the project in Unity 2022.3 LTS or Unity 6.
- Open
Assets/Scenes/Main.unityand press Play. - Use the in-scene portals to trigger transitions through the WGE graph.
Key files
Assets/Scripts/Installers/ProjectInstaller.cs— registersTransitionService.Assets/Scripts/Services/TransitionService.cs— callsTransitionManager.GoTounder the hood.Assets/Graphs/MainWorld.asset— theWorldGraphContainerused by the demo.
Caveats
- Requires the Zenject (or Extenject) package — install it via Unity Package Manager before opening the scene.
- Asset GUIDs are stable; if you upgrade WGE, re-link the graph asset in the inspector if needed.