How can I export NavMesh Data

I’m having trouble exporting data from NavMesh.
I want to extract the triangle data (v and f) from the green area (navigation) that is displayed in the Unreal Engine Editor.

So in the NavMesh settings, I set the Runtime Generation option to Dynamic and wrote the following code.

However, the obj file output via ExportNavigationData() contains the entire map outside of the green area, and the triangle tiles don’t appear to be the size I want.

If anyone has a solution for this, I would appreciate a detailed response.

Would you mind sharing your code? Maybe I can help.

Any updates? I’ve been looking everywhere too

I also had a same problem about 3 years ago, but i solved with another method.

It’s been 3 years since last work, so i don’t have a code about it, but there’s few advices.

  1. there’s method called GetDebugGeometryForTile in ARecastNavMesh
  2. I made generating mesh code by reference of ExportNavigationData method code in FRecastNavMeshGenerator

The point is, you gotta use DebugGeometry and assemble vertices and indices by yourself.

I hope it helps.