Skip to content

SeinARTS Navigation

Class · USeinNavigationSettings : USeinSettings

Parent: Sein Settings

#include "Settings/SeinNavigationSettings.h"

Navigation settings: the navigation class, agent layers, the path budget and the shipped A* tunables.

TSoftClassPtr<USeinNavigation> NavigationClass

Editable in defaults and on instances · Saved to config

Which navigation system drives pathfinding for the whole game. Movement orders, the level bake, and order validation all route through the class you pick here; nothing else in the framework cares how it works underneath.

The default is the shipped A* navigation: a footprint-aware 2D-grid A* with line-of-sight smoothing that only routes a unit through cells its body actually fits in — a solid, general-purpose RTS default. Pick your own subclass instead (custom routing, flow fields for mass movement, and so on) without touching any other framework code.

Set this to None to turn navigation OFF — WYSIWYG, but heavy: every Move order fails and the nav wall-barrier stops blocking (collision can then push units through baked walls), so only do it if your game supplies its own pathing. A one-time on-screen warning fires while it is off (suppress it in Editor Preferences). A set-but-unloadable class is treated as a mistake, not off, and falls back to the shipped A* default with a logged error.

bool bAsyncPathfinding · default true

Editable in defaults and on instances · Saved to config

Collects path requests and solves them in deterministic batches starting the tick after they are made, instead of solving each inline. This takes the heaviest simulation work off the critical tick, and the paths are the same either way. An uncongested request arrives on the next tick; requests beyond Path Requests Per Tick Budget stay queued in entity order until later ticks. A unit that is re-ordered never uses a path computed for its previous order. Because it changes which tick a unit receives its path on, every client in a multiplayer match must use the same value: treat it as a build-wide setting, not a per-machine option. On by default.

TArray<FSeinNavLayerDefinition> NavLayers

Editable in defaults and on instances · Saved to config

Extra navigation layers for the agent/blocker mask, so different unit classes can path through different obstacles. There are exactly seven slots (slot 0 is bit 1 up to slot 6 as bit 7), a count the framework enforces.

The built-in “Default” layer is NOT one of these — it is reserved as bit 0 and is always present. These seven slots are purely for additional agent classes a game needs beyond generic pathing: Amphibious, Heavy Vehicle, Friendly Faction, Infantry Only, and the like. All seven ship disabled; opt in by naming and enabling the slots your game uses.

Pathing is blocked when an agent’s mask and a blocker’s mask share any bit. So an amphibious unit whose mask drops the Default bit and adds an Amphibious bit walks straight through a water blocker authored as Default-only, while a multi-class agent simply sets several bits.

Renaming a slot is safe. Reordering or inserting in the middle shifts every higher bit and breaks replays and saves — only append or rename.

int32 PathRequestsPerTickBudget · default 32 · min 1, max 1024

Editable in defaults and on instances · Saved to config

How many path searches the planner runs per simulation tick — the planner’s speed limit. If more units ask for paths in one tick than the budget allows, the extras remain queued in canonical entity order for later ticks, so a big selection staggers its searches instead of spiking the CPU.

Default 32 covers typical RTS group sizes with no visible stagger (a 50-unit selection spreads over about 2 ticks). Lower it (4-8) to hard-cap per-tick path cost on low-spec targets or huge maps; raise it (128 and up) to effectively disable throttling if you have frequent large simultaneous moves and have measured the cost is fine. One-off Blueprint queries (Find Path) and reachability checks bypass the budget — only auto-pathing units are throttled. Lockstep-safe: consumption order matches across clients.

FFixedPoint NavProjectionElevationTolerance · default FFixedPoint::FromInt(100) · shown when IsUsingShippedAStar · min 1.0, max 10000.0

Editable in defaults and on instances · Saved to config

How close in height a candidate cell must be to count as “the same level” when the planner snaps a destination onto walkable ground. Clicks (and formation slots) snap to the nearest passable cell; this is the maximum height difference allowed before the search keeps looking for a better-matched cell.

It prevents the “stragglers run off the cliff” bug: click on a raised platform and slots that fan over the edge would otherwise snap to the floor below — the elevation gate keeps them on the platform. Default 100 matches the default 100 cm cell. Tighten it (50) for maps with closely-stacked mezzanine levels you want kept distinct; loosen it (200 and up) for tall step-ups that should still read as one level. Only used when the shipped A*-family nav is selected.

int32 NavProjectionMaxRingRadius · default 30 · shown when IsUsingShippedAStar · min 1, max 200

Editable in defaults and on instances · Saved to config

How far (in cells) the planner searches for a fallback spot when the clicked point isn’t directly walkable — the “walk near here instead” radius. Click a wall, the ocean, or an impassable mountain and the planner scans outward ring by ring for the nearest walkable cell, giving up past this distance.

At radius 30 a click on water sends the unit to the nearest shore within 30 cells; at 5 it fails if no shore is that close. Default 30 is about 30 m on a 100 cm grid. Raise it for sparse walkable regions where clicks legitimately need to scan far; lower it if you’d rather clicks past the playable area fail fast than “walk to the nearest land.” Cost scales with the radius squared, so keep large values in check. Only used when the shipped A*-family nav is selected.

int32 NavMinWalkableIslandCells · default 16 · shown when IsUsingShippedAStar · min 1, max 1024

Editable in defaults and on instances · Saved to config

Smallest connected walkable region the nav bake keeps, in cells. After baking, the A* nav floods the grid into connected walkable regions and discards any region smaller than this — junk islands like wall tops, cube tops, and slivers of floating geometry units can’t reach anyway.

Raise it to prune larger stray patches (e.g. a 5x5 rooftop you don’t want pathable); lower it toward 1 to keep small legitimate platforms. Re-bake after changing. Only used when the shipped A*-family nav is selected.

int32 NavReachabilityProfileCacheCapacity · default 8 · shown when IsUsingShippedAStar · min 1, max 64

Editable in defaults and on instances · Saved to config

Maximum number of agent-specific static connectivity fields retained by the shipped A* planner. One entry costs four bytes per nav cell and turns bRequiresPathableTarget validation into two O(1) label reads after its loading/spawn-time warm-up. FIFO eviction is result-neutral: it can only cause a later profile to rebuild, never change reachability. Raise this for games with many simultaneous footprint/terrain-policy combinations; lower it on memory-constrained targets. Default 8.

bool IsUsingShippedAStar() const;

EditCondition for the shipped A* tunables above: true while Navigation Class is the shipped A*. Custom navigation classes do not use those settings, so they hide.