How/Where can I find required modules for some functionality in C++?

e.g I added this code:

FVector ASTrackerBot::GetNextPathPoint()
{
	ACharacter* PlayerPawn = UGameplayStatics::GetPlayerCharacter(GetWorld(), 0);

	UNavigationPath* NavPath = UNavigationSystemV1::FindPathToActorSynchronously(this, GetActorLocation(), PlayerPawn);

	if (NavPath->PathPoints.Num() > 1) {
		return NavPath->PathPoints[1];
	}

	return GetActorLocation();
}

It was asking for “NavigationSystem”, which I found on another source. Where I can take a look for which functionality which modules I need?

I greatly appreciate any help from you!

could you please point where is it there?
It is not user friendly. The worst structure of documentation. Angular or Laravel /yii2 is much easier to find

Could you please point me where I can find it exactly(direct url to it)?
animations is described well, but overall structure and UX is horrible (e.g.left side bar)!

Hi,

Do a search in the solution explorer of VS. Hope it helps…

If you take a look at the Unreal Engine documentation, under the references tab, it should list the required module.

For instance with UNavigationPath: UNavigationPath | Unreal Engine Documentation