# How can I export NavMesh Data

**URL:** <https://forums.unrealengine.com/t/how-can-i-export-navmesh-data/1846323>\
**Category:** C++\
**Tags:** c-c, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, c-error, c-class, c-custom-shape, c-programming, c-cone-shape, unreal-engine, navmesh, question, CPP\
**Created:** [May 8, 2024, 1:16pm UTC](https://forums.unrealengine.com/t/how-can-i-export-navmesh-data/1846323 "2024-05-08T13:16:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinLutherKing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MartinLutherKing](https://forums.unrealengine.com/u/MartinLutherKing)\
**Post date:** [May 8, 2024, 1:16pm UTC](https://forums.unrealengine.com/t/how-can-i-export-navmesh-data/1846323/1 "2024-05-08T13:16:44Z")

</div>

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.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/4/0d4243c11d3674d9e6caa14b570664763840774c.jpeg)

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/a/18af4e456cbc1396b6bd2c03a7e57596453426dc.png)

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.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/1/b617f0ffb35c875552143decbeb73d3242830ddb.jpeg)

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

---

<div class="post-metadata">

**Author:** ![BojanglesTheLess](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BojanglesTheLess](https://forums.unrealengine.com/u/BojanglesTheLess)\
**Post date:** [June 13, 2024, 4:45pm UTC](https://forums.unrealengine.com/t/how-can-i-export-navmesh-data/1846323/2 "2024-06-13T16:45:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MrZelektronz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrZelektronz](https://forums.unrealengine.com/u/MrZelektronz)\
**Post date:** [September 29, 2024, 4:13pm UTC](https://forums.unrealengine.com/t/how-can-i-export-navmesh-data/1846323/3 "2024-09-29T16:13:48Z")

</div>

Any updates? I’ve been looking everywhere too

---

<div class="post-metadata">

**Author:** ![NavySunKor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NavySunKor](https://forums.unrealengine.com/u/NavySunKor)\
**Post date:** [November 5, 2025, 12:40pm UTC](https://forums.unrealengine.com/t/how-can-i-export-navmesh-data/1846323/4 "2025-11-05T12:40:37Z")

</div>

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.
