Skip to content

1. Install and run the samples

Import Waybranch, open the two shipped sample scenes, and walk a generated map with a mouse, a keyboard, a gamepad, or a touchscreen. No code is involved.

Install

Watch the editor walkthroughs: create and configure a starter map (2 min 48 s) or save and restore a route (50 s).

  1. Import Waybranch into a Unity project. That is the whole install: no third-party dependency, no render-pipeline package, no setup step. Everything ships under Assets/Waybranch/ without writing anything outside it.
  2. Check that uGUI (com.unity.ugui) is present. It is in standard Unity projects already, and it is the only package Waybranch requires. com.unity.inputsystem is optional: install it and the typed input bridge compiles in, leave it out and nothing is missing.

What has actually been verified

Unity 2022.3.62f1 remains the serialization baseline. Current authoring and sample tests also passed in Unity 6000.3.25f1 with Built-in on Linux; the Experience Studio walkthrough includes native media from that editor. Broader version, pipeline, platform, and physical-input coverage remains pending. The recorded evidence and the pending list ship in the package, at Assets/Waybranch/Documentation/Compatibility-and-Release.md.

Both sample scenes open from the Tools > Waybranch menu, so you never have to find them in the Project window.

Sample Menu item Scene
Quick Start Open Quick Start Sample Samples/QuickStart/WaybranchQuickStart.unity
Wayfarer Open Wayfarer Sample Samples/Wayfarer/WaybranchWayfarer.unity

Quick Start and Wayfarer are the shortest sample route. If you want to author a presentation first, use Experience Studio instead: create an example preset, preview it, apply the preset, and create a demo in the current scene. The Studio route is optional and does not replace either shipped sample.

The Unity Project window open to Assets, Waybranch, Samples, QuickStart, Content, listing the Quick Start blueprint, rules, theme, content pool and four node types

The Quick Start inputs ship together under Assets/Waybranch/Samples/QuickStart/Content. They are sample assets you can inspect; opening the sample does not generate replacements elsewhere in the project.

Each scene holds exactly one object, carrying a SampleSceneBootstrap component. There is no camera, no canvas, and no map until you press Play: the bootstrap builds the traversal controller, the presenter, the input controller, and its own control panel in code, so nothing there is a prefab you have to take apart to understand.

Both samples draw with the default style

Neither sample assigns a MapStylePreset, so both render with the shipped default, Slate Nocturne. If nodes appear as flat rectangles with no shading, see Troubleshooting.

Run the Quick Start sample

1. Open Quick Start and press Play

Tools > Waybranch > Open Quick Start Sample, then press Play.

You get a six-node map running vertically, drawn by the screen-space Canvas presenter and generated procedurally from seed 20260722. Its rules ask for four layers, one, two, two, and one node wide, mixing four node types, Route, Rest, Landmark, and Gateway, with a Route forced first, a Gateway forced last, one or two Rest nodes in total, and no two Rest nodes adjacent.

The Quick Start sample in Play Mode, with a control and status panel on the left and the generated map in the reserved viewport on the right

The initial Quick Start view. The panel reports the seed and traversal counts and provides sample controls; the map uses the remaining viewport.

2. Click a highlighted node

Locked nodes are dimmed and slightly smaller, the node you occupy is ringed and pulses gently, and a route is widened and brightened when the node it leads to is available, so the next legal choice reads at a glance.

State What you are looking at
A dim, slightly shrunken node Locked Visible, not reachable.
A fully bright node with a soft glow Available Click this one.
A large bright node inside an amber ring Current Where you are standing.
A slightly dimmed, slightly smaller node Visited Entered, not finished.
A plain bright node with no glow Completed Finished, and what follows it is unlocked.

Those are the default style's per-state settings rather than fixed behaviour; tutorial 5 changes them.

3. Use the control panel

The panel docked down the left is sample scaffolding, not part of the package. The map viewport reserves the strip it occupies, so nodes never render underneath it at any aspect ratio.

Button Effect
Enter available Enters the first available node in ID order
Complete current Marks the current node complete, which unlocks what follows it
Next seed Regenerates the map at seed + 1
Save / Load Writes and reads the whole graph together with traversal state
Delete + reset Deletes the save and restarts traversal on the same graph
Hero: ... Cycles the six idle-animated characters standing on the current node

Enter available, Complete current, and Load grey out when they do not apply. Below them, a status line reports the last thing that happened, a metrics line shows the seed, the state revision, and the visited and completed counts, and a legend gives the colour each node state draws with.

4. Finish the map

Completing the final node reports that the map is finished and that Waybranch neither loaded a scene nor granted a reward. Complete current stands in for your own gameplay: the package tracks progression and nothing else. Quick Start saves into memory, so its save is gone once you leave Play mode.

Run the Wayfarer sample

5. Open Wayfarer and press Play

Tools > Waybranch > Open Wayfarer Sample, then press Play.

A fifteen-node map across seven layers, one to three nodes wide, built from six node types: Path, Haven, Crossing, Archive, Observatory, and Summit. Three zones restrict which types may appear where: wayfarer.zone.shore covers the first three layers, wayfarer.zone.highlands the next two, and wayfarer.zone.peak the last two. Summit is permitted only in the peak zone, so it can never turn up early.

The Wayfarer campaign sample in Play Mode after entering the harbor, with the callback status and presenter controls visible beside the map

Wayfarer after entering wayfarer.harbor. The sample panel shows the customer callback and the extra presenter and orientation controls; Waybranch itself still owns only map state and traversal.

6. Press Next seed and watch what survives

Its blueprint is hybrid rather than fully procedural. Four landmarks, wayfarer.harbor, wayfarer.trailhead, wayfarer.observatory, and wayfarer.summit, are authored by hand with pinned identity, and the generator fills in everything around them. Press Next seed and those four keep their IDs while the rest of the map changes.

7. Swap the presenter and the theme

Wayfarer adds two buttons Quick Start does not have.

Button Effect
Canvas / World Swaps the screen-space Canvas presenter for the in-scene World2D one, showing the same graph and the same progress
Orientation Swaps the vertical theme for the horizontal one, which also changes routes from curves to polylines

Neither button touches the graph. The presenter decides how a map is drawn and the theme decides how it is laid out; your progress through it is unaffected either way. See Style, theme, and the presenter boundary. Wayfarer also writes real files, under WaybranchSamples/Wayfarer inside Unity's Application.persistentDataPath, so its save survives leaving Play mode.

Controls

Both samples read Unity's legacy Input class, which is what MapInputController falls back to when no other source is bound.

Action Input
Select a node Left click
Pan Middle-button drag
Zoom Scroll wheel
Action Input
Move focus The Horizontal and Vertical axes: arrow keys, WASD, or the left stick
Enter the focused node Return, Space, or the Submit button

Holding a direction moves focus once, waits 0.35 seconds, then steps every 0.12 seconds.

Action Input
Select a node Tap. Moving more than 12 pixels pans instead of selecting
Pan One-finger drag, or two fingers moving together
Zoom Two-finger pinch

Taps are ignored while a pinch is in progress, so zooming never selects a node by accident.

Zoom is clamped to the active theme's limits: 0.65 to 2.2 in Quick Start, 0.55 to 2.5 in Wayfarer. Focus survives regeneration and loading: when the node you had focused no longer exists, focus recovers to a legal node instead of being lost. Full detail in Input, focus, and camera framing.

Next