How can I export navmesh data to file?

Its need for server side AI calculating, i dont want to use ue4 server side.

GetWorld()->GetNavigationSystem()->GetMainNavData()->GetGenerator()->ExportNavigationData(FString("C:\\data.txt"));

show error (access memory 0x0000…05) when run.

ExportNavigationData is a debug-time tool and was never intended to be used for anything else. What navmesh data do you want to export anyway? ExportNavigationData (when it doesn’t crash) spits out an OBJ representing navigable geometry (basically so that we can load it up in RecastDemo or and OBJ viewer to look at it). Do you need actual navmesh to be exported? It’s not supported. If you want navigable geometry try getting it from navigation octree (can be fetched from NavigationSystem).

Cheers,

–mieszko

I want export coordinates of this points and some pointer to movable/unmovable area if its possible

http://screenshot.ru/81a81e6f0d6bfebda32a38e1a8476bca.png

There are no ready to use functions for that I’m afraid. You’ll need to get familiar with Recast code and fetch that data yourself.