UNavigationSystem::FindPathToLocationSynchronously might be what you’re looking for. That takes a start and end position and returns a UNavigationPath, which contains a list of points along the path and a function you can call to get the cost. Might take a while if the paths you’re making are long, so just keep that in mind.