What's the new way to find a path using Nav Mesh? The old one doesn't work

Hello everyone,

In UE4.14, I was using this code to find a path, but in the newest version, I cannot use this code. The class doesn’t have “FindPathToLocationSynchronously” function. So, what’s the new way to find a path?

UNavigationSystem* NavMesh = GetWorld()->GetNavigationSystem();

// Get a random point
FNavLocation PointB;
NavMesh->GetRandomPointInNavigableRadius(PointA, 5000.0f, PointB);

// Find a path to PointB
UNavigationPath* Path = NavMesh->FindPathToLocationSynchronously(GetWorld(), PointA, PointB);