Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

markNavMeshDirty

markNavMeshDirty(step, markNavMeshDirtyOptions): void

Rebakes the navmesh tiles a box meets from the colliders and the ground as they stand, as Unreal’s dirty areas and Unity’s UpdateNavMeshDataAsync take bounds: for a collider change the engine did not hear, such as one engine code wrote in place with no mark. The box belongs to the character controller until its tiles rebake. The step rebakes queued tiles two a tick, oldest first, so a box over one to four tiles lands within two ticks, and a larger one takes a tick for each two of its tiles. A collider’s marked change needs no call. Geometry the navmesh never reads, such as a game’s own collision code, it does not take: the bake reads the ground, the scatter and the Entities’ colliders alone.

Parameter Type
step AuthoritativeStep | PredictedStep
markNavMeshDirtyOptions MarkNavMeshDirtyOptions

void