I’m trying to generate navigation mesh on a procedurally generated mesh (grid plane) at runtime. I have dynamic navigation mesh generation enabled in project settings and “Can affect Navigation” enabled on the procedural mesh. Navigation mesh is working fine for static and instanced meshes.
Procedural mesh I have receives navigation data only after I actively move its location in editor window (in F8 edit mode), but nothing I’m trying to call from scripts seems to update the navigation mesh.
Here is a list of what I tried:
- FNavigationSystem::RegisterComponent
- FNavigationSystem::UpdateComponentData
- FNavigationSystem::UpdateComponentDataAfterMove
- FNavigationSystem::OnPostEditActorMove
- FNavigationSystem::Build
- UNavigationSystemV1::AddDirtyArea
- UNavigationSystemV1::RebuildDirtyAreas
- UNavigationSystemV1::RegisterComponent
- UNavigationSystemV1::Build
- UNavigationSystemV1::RebuildAll
- Locking navigation building in project settings and unlocking at runtime with UNavigationSystemV1::ReleaseInitialBuildingLock