[Answered] - Can not find Landscape.h or LandscapeProxy.h

If you get the error

Can not find include file Landscape.h in C++ it means you need to add Landscape to your Build.cs file.

Like mygame.Build.cs

// Fill out your copyright notice in the Description page of Project Settings.

using UnrealBuildTool;

public class mygame: ModuleRules
{
	public tdl(TargetInfo Target)
	{
		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "AIModule" });

		PrivateDependencyModuleNames.AddRange(new string[] {  });

		PublicDependencyModuleNames.AddRange(new string[] { 
			"OnlineSubsystem",
			"OnlineSubsystemUtils",
			"Landscape",
            "Steamworks"
		});
		 
		DynamicallyLoadedModuleNames.Add("OnlineSubsystemSteam");
	}
}
1 Like

Thanks for letting people know this. We are moving more and more parts of the engine into modules to reduce compilation time while iterating on engine changes. 4.7 moves Foliage to its own module.