Skip to content

Sein Navigation Subsystem

Class · USeinNavigationSubsystem : UWorldSubsystem

#include "SeinNavigationSubsystem.h"

World subsystem that creates the navigation instance chosen in the Navigation settings, meters path requests against the per-tick budget, and holds queued asynchronous requests. Get Navigation returns the active instance, or null when navigation is off.

The active navigation instance. Null when NavigationClass is None (navigation off, WYSIWYG); otherwise valid after Initialize. All callers null-guard.

USeinNavigation* GetNavigation() const;

Convenience accessor for BP and external callers that only have a UObject-with-world. Returns null if the world has no nav subsystem.

static USeinNavigation* GetNavigationForWorld(const UObject* WorldContextObject);
C++ members (5)
  • void ReleaseModuleOwnedStateForModuleUnload(); Unregister systems and delegates, then release module-owned runtime state while SeinARTSNavigation code is still loaded. Called by the module’s PreUnloadCallback; idempotent with later world teardown.
  • bool IsInitialStaticEnvironmentPrepared() const; True once initial Level Data adoption resolved to Adopted or the valid NotApplicable fallback. False while pending or after rejection.
  • const FSeinStaticEnvironmentAdoptionResult& GetInitialStaticEnvironmentAdoptionResult() const; Exact result of the latest initial/static-environment adoption attempt.
  • ESeinPathResult RequestPath(const FSeinPathRequest& Request, FSeinPath& OutPath); Budgeted path request. Routes to Navigation->FindPath when the per-sim-tick request budget (configured via USeinNavigationSettings::PathRequestsPerTickBudget) hasn’t been spent yet; otherwise returns Throttled without doing any A* work — caller retries next tick. The synchronous counter resets lazily when the subsystem observes a new simulation tick. Lockstep-deterministic: all clients increment the counter in the same order (latent-action tick order) so all clients agree which requests are throttled in a given tick. Use this from any tickable consumer (latent move actions, abilities) that can wait a tick for a path. One-shot callers (BPFL queries, reachability checks) should call Navigation->FindPath directly to bypass the budget. Async continuations remain owned by the requester until they are consumed, superseded, or explicitly cancelled; custom consumers must call CancelPathRequest when they terminate without consuming their result.
  • void CancelPathRequest(FSeinEntityHandle Requester); Cancel all queued and ready async path state owned by Requester. Safe and idempotent when async pathfinding is disabled or no request is pending. Terminal tickable consumers must call this so abandoned requests do not stay in the simulation state.