class

NavMeshRebuildSystem

Rebuilds a tiled navmesh by change at runtime (UE's dynamic generation with dirty areas). Every frame it notices nav-relevant geometry that moved, appeared or disappeared — mesh renderers that are not simulated physics bodies, compared by their transform's world version and mesh — and records the old and new bounds as dirty. MarkDirty takes areas from gameplay directly (a door, a destruction chunk, a deployable). Once the dirty set has been quiet for nav.Rebuild.SettleTime seconds (or has waited nav.Rebuild.MaxDelay), the touched tiles of every agent type's mesh are baked on a worker, at most nav.Rebuild.MaxTiles per pass, and swapped in on the game thread. Solo meshes and tile-cache meshes are left alone: the first has no tiles to swap, the second already re-cuts itself through dynamic obstacles.

Module
AINavigation
Header
#include "AINavigation/NavMeshRebuildSystem.h"
Namespace
Mowo

Constructors

SignatureNameDescription
NavMeshRebuildSystem() = defaultNavMeshRebuildSystem
NavMeshRebuildSystem(const NavMeshRebuildSystem&) = deleteNavMeshRebuildSystem

Public functions

ReturnsNameDescription
NavMeshRebuildSystem&operator=
SystemPhaseGetPhase
voidUpdate
voidShutdown
voidSetScene
voidMarkDirty
boolIsRebuilding
uint32_tGetRebuildCount
size_tGetPendingAreaCount

Function details

C++
NavMeshRebuildSystem() = default
C++
NavMeshRebuildSystem(const NavMeshRebuildSystem&) = delete

operator=

C++
NavMeshRebuildSystem& operator=(const NavMeshRebuildSystem&) = delete

GetPhase

C++
SystemPhase GetPhase() const override

Update

C++
void Update(float deltaTime) override

Shutdown

C++
void Shutdown() override

SetScene

C++
void SetScene(Scene* scene)

MarkDirty

C++
void MarkDirty(const Vec3& boundsMin, const Vec3& boundsMax)

IsRebuilding

C++
bool IsRebuilding() const

GetRebuildCount

C++
uint32_t GetRebuildCount() const

GetPendingAreaCount

C++
size_t GetPendingAreaCount() const
Generated from AINavigation/NavMeshRebuildSystem.h via ainavigation.json · Oct 27, 2026Version 1.0.0