Routes, tracker, floors and map filters
Routes #

Add a Waypoint Route (GameObject > Bearing, or Add Component > Bearing > Waypoint Route; the HUD's object is a good place). With no Target it leads to the current objective (the nearest Active place); give it a Target, or let the player track a place, to lead somewhere else. It works like a game's GPS: the route is worked out once and then kept steady. The line shortens as the player follows it, and it is only worked out again when the player strays more than Stray Distance from it, the place moves, or a clearly shorter way opens up (checked every few seconds, taken only when 15% shorter). It is drawn:
- on screen, as soft dashes laid on the ground (a ray down every metre and a half, so it follows hills and steps). It starts a couple of metres ahead of the player and fades in, fades out before Draw Ahead ends, narrows with distance, is hidden where walls, rocks and hills are in the way, and never crosses the compass, the minimap or the objective list;
- on the minimap and on the full-screen map (the whole route, the same corners as on screen);
- as a chevron on the compass bar where the route turns next.
Modes #
"Roads" means everything you mark with a Waypoint Road: roads, streets, trails and paths.
| Mode | What it does |
|---|---|
| Fastest (NavMesh) | The quickest walking path round walls and water, from a baked NavMesh (Window > AI > Navigation, or NavMesh Surface). |
| Prefer roads | Along your roads and trails when that is at most Road Detour times the direct way (1.35 = up to 35% longer), the fastest way on and off them. Otherwise the direct fastest way. |
| Roads only | Along the roads wherever they go (when the player is within Road Reach of one), the fastest way only to get on and off. |
| Straight line | A straight line to the place (flying, sailing, open plains). |
| My points | Your own points in order (a tour, a river). |
| Off | No line; the compass cue and the markers still point the way. |
Roads and trails: put a Waypoint Road on an empty object and give it child points along the road, in order (or list them). Where a road's point comes within Join Distance of another road they connect, so crossroads and forks work. Preference below 1 makes routes go further to use a road (a main road); above 1 only when it saves a lot (a rough track). Roads draw nothing; select one to see it in the Scene view.
A place's own mode: each Waypoint has Route (Route default, or its own: a dock reached by sea set to Straight line, a town to Prefer roads).
Players: Player Options > Route options adds a Route section to the in-game options panel (only when the scene has a Waypoint Route): Route (Game default, Fastest, Roads first, Straight line, Off) and Route on screen. The order of who decides: the player's Off always wins, then the place's own mode, then the player's choice, then the route's mode.
When there is no path, and when the line shows #
Fallback is what shows when there is no path (no NavMesh, the place off it, no road near): Straight line, Compass
only (no line, the compass cue still shows the way) or Hide. Status says what is shown (NavMesh, NavMeshPartial,
Roads, Manual, StraightLine, Fallback) and Reason says why in plain words; Tools > Bearing > Diagnostics lists it.
Show When: Always; Tracked or set places only (no line to the automatic nearest objective, only to a place the player tracks or your game sets as the Target); Map open only (the world and minimap stay clear); A few seconds after setting (the line shows for Show Seconds when a place is set and after a reroute, then fades). The route hides within Hide Within of the place, and comes back only 2 m further out, so it doesn't blink at the edge.
The look is the style's Route section: Line Kind (dashes, dots, chevrons pointing the way, or solid), Show Walked (the part already walked stays as a faint grey line on the minimap and map, in Walked Color), Flow (the dashes move towards the place; off by default), on screen, on the map, on the minimap, colour (or the objective colour), widths, dash and gap, opacity, height above the ground, Draw Ahead, Start Ahead, Fade, Follow Ground, Hide Behind Walls and the layers that hide it. Compass > Show Route Cue switches the chevron.
From code: route.Target = place;, route.Mode = RouteMode.PreferRoads;, route.Recalculate();, route.Corners,
route.Status, route.Reason, route.EffectiveMode, route.Changed; WaypointRoad.MarkChanged() after moving road
points at run time.
Objective tracker #
A short list in a screen corner: every Active place (the current objectives, nearest first), then up to Max Tracked places you set Tracked on (Waypoint > Discovery and fast travel > Show in the tracker), each with its icon, name and distance. Style section Tracker: on/off, corner, margins, how many, distances, icon size, title, panel colour. Undiscovered places show as "?".
Compass bearing readout and height arrows #
- Compass > Show Bearing writes the heading under the centre mark: NE 45° or 045° (Bearing As). The direction letters come from the compass's direction words, so they follow your language.
- Marker > Show Height Arrow: a small up or down arrow beside a marker (and its edge arrow) when the place is more than Height Threshold metres above or below the player. The compass and minimap have their own height arrows.
Floors #
For buildings and levels mapped one floor at a time, fill the Waypoint Map's Floors list: a name, the height range (world Y; Z in 2D) and the floor's own picture. The minimap shows the player's floor. The full-screen map opens on the player's floor; the up and down buttons at its lower right step through the floors, with the floor name above them. Places carry a Floor number (0 = the first floor in the list); places on other floors are dimmed.
Map legend and filters #
The full-screen map's places legend (top right) lists the place states that are on the map (Places, Objective, Done...)
and their categories. Click a row to hide or show those places. From code: WaypointMapFilters.SetStateShown,
SetCategoryShown, ShowAll. Filters are saved with the rest.
Saving #
WaypointSave (format 3) and the shared save also keep: which places are tracked, the map filters and the route's
target.