Hey guys,
already asked in the forums: Problem with exporting nav mesh data. - C++ - Unreal Engine Forums
i’m using following code to export the Navmesh:
FWorldContext Context = GEngine->GetWorldContexts().Last();
UWorld* World = GetWorld();
UNavigationSystemV1* NavSys = FNavigationSystem::GetCurrent<UNavigationSystemV1>(World);
ANavigationData* NavData = NavSys->GetDefaultNavDataInstance(FNavigationSystem::ECreateIfEmpty::DontCreate);
ARecastNavMesh* NavMesh = Cast<ARecastNavMesh>(NavData);
NavMesh->GetGenerator()->ExportNavigationData(FString(TEXT("C:\\Users\\xxxx\\Navmesh")));
Somehow not the Navmesh gets exported, but a model what looks like the a collision model.
But i would like to extract the NavMesh itself (for using it in VR to highlight, where a player can go)
model exported
model (orange) i would like to extract
Would be great if someone could point me in the right direction. I’m also unable to find the Definition of ExportNavigationData()
kind regards