Waybranch¶
Deterministic branching maps for Unity. Generate route maps, overworld webs, and chapter gates from rules — then traverse, save, and present them without writing rendering code.
Watch the editor walkthroughs¶
Create and configure a starter map (2 min 48 s) · Save and restore a route (50 s). Both videos have English captions and selectable chapters.
Choose your path¶
See it work¶
Open both shipped samples and walk a map with mouse, keyboard, or touch.
Author an experience¶
Preview a preset, apply or undo visual changes, switch backend, and create a demo scene.
Generate from rules¶
Generate a map from a seed, reproduce it exactly, and audit a range of seeds.
Match your game¶
Copy a shipped style into an asset you own and edit it against a live preview.
Wire it up¶
Traversal events, payloads, save slots, and generating a graph with no scene.
What it does¶
You give Waybranch rules: how many layers, how wide each layer may be, which node types may sit where, and how many edges may leave or enter a node. It gives you a graph, deterministic from a seed. A session owns traversal, a presenter draws what the session reports, and a style decides how that drawing looks.
The same rules and seed always produce the same graph, on every machine and platform. That is
structural rather than promised: Waybranch.Core is compiled with noEngineReferences: true,
so it cannot reach UnityEngine.Random, Time, or a GameObject even by accident.
Waybranch does not own encounters, rewards, scenes, or quests. It reports what the player did and leaves those decisions to your code.
In code¶
var compiler = new MapAuthoringCompiler();
MapRulesCompilation rules = compiler.CompileRules(rulesAsset);
var generator = new LayeredMapGenerator();
MapGenerationResult result = generator.Generate(
new MapGenerationRequest(rules.Value, seed: 12345u));
MapGraph graph = result.Graph; // same seed, same graph, always
Requirements¶
| Item | Detail |
|---|---|
| Unity | 2022.3.62f1 serialization baseline; current Experience Studio validation in 6000.3.25f1 |
| Required package | uGUI (com.unity.ugui), present in standard Unity projects |
| Optional package | com.unity.inputsystem, which compiles the typed input bridge in |
| Experience Studio backends | Canvas, World2D, World3D, and UI Toolkit |
| Render pipeline | Built-in is the verified baseline; URP and HDRP are pending current Experience Studio verification |
| Dependencies | No paid dependency, no DLL, no DRM, no telemetry, no network service |
Validation scope
The current Unity 6000.3.25f1 task passed 597 EditMode cases (two Windows-only cases
ignored on Linux) and 28 PlayMode cases. The native Studio walkthrough demonstrates
editing, applying, and changing the presentation backend. Broader version, platform,
hardware-input, and pipeline coverage remains pending. Waybranch.Core retains its
Unity 2022.3 compatibility contract. The UI Toolkit
Experience Studio backend is compiled and registered only with UNITY_6000_3_OR_NEWER.
The evidence and pending list ship in the package, at
Assets/Waybranch/Documentation/Compatibility-and-Release.md.
Documentation only
This site documents Waybranch. The product source is not published here.
Next¶
- Install and run the samples — the shortest route from import to a map you can walk.
- Experience Studio — preview, apply, and turn a preset into a demo scene.
- Core concepts — the pipeline stages and which stage decides what.
- API reference — every public type, grouped by what it is for and filterable as you type.
