Fatal error c1083 Cannot open include file "AI/Navigation/NavigationSystem.h"

I’m trying to use the AI navigation system UNavigationSystem::SimpleMoveToActor and tried to include the file but it keeps giving me the error.

Any idea on how to fix this?

I tried adding “NavigationSystem” on the Build.cs but it does nothing.

The moveTo method is provided by AIController. Have add AI to module and try to include AIController ? Check that =)

“AIModule” is included in the build.cs

full module names:

        PublicDependencyModuleNames.AddRange(new string[] { "Core","CoreUObject","Engine","InputCore","AIModule","NavigationSystem" });

This was the culprit:

NavigationSystem class has been renamed to UNavigationSystemV1.