Hey,
I wrote a code that generates a level on begin play. The problem is that my AI canot use that level because I need to regenerate a navmesh.
I tried this, but It doesn’t work.
NavigationSystem = UNavigationSystemV1::GetNavigationSystem(this);
if (NavigationSystem)
NavigationSystem->Build();
I see logs, but no results:
LogNavigationDataBuild: Display: UNavigationSystemV1::Build started...
LogNavigationDataBuild: Display: Building navigation data using WITH_PHYSX.
LogNavigationDataBuild: Display: Building navigation data using WITH_CHAOS.
LogNavigationDataBuild: Display: UNavigationSystemV1::Build total execution time: 0.00s
Only way I could make it work to make navmesh dynamic, but it doesn’t seem like an afficient way to do that.
Thank you.