I added the NavigationSystem as a dependency and fixed the Include statements and as the notes say
World->GetNavigationSystem was renamed
earlier i was using GetWorld()->GetNavigationSystem()->Build(); in my code so I replaced it with
FNavigationSystem::GetCurrent(GetWorld())->Build() as seen below
But that gives me an error saying the UWorld* pointer is not an accepted argument
I checked the function definition and it take UWorld* as an argument
isn’t the World Context Object pointer to the world ?
I got it working by using
UnavigationSystemV1::GetNavigationSystem(GetWorld())->Build();
but I still don’t understand why FNavigationSystem::GetCurrent() is not working
it is what’s recommended in the release notes
can somebody shed some light on it