해당 에러는 빌드시에 Unreal Build Tool이 해당 하는 위치의 소스파일을 찾지 못해서 발생시키는 오류이다.
나같은 경우에는 소스코드의 폴더 정리를 위해 Source 폴더 상위에 프로젝트의 이름으로 하나 더 추가 했을때 경로를 찾지 못해서 발생했다.
해결을 하기위해서는 프로젝트의 Build.cs 파일 내에 PublicIncludePaths에 포함시킬 경로를 추가해주면 된다.
// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class ProjectVD : ModuleRules
{
public ProjectVD(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(new string[] { "ProjectVD" }); // 이부분에 Source 폴더 이후에 추가되는 폴더명을 추가해주면된다.
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
PrivateDependencyModuleNames.AddRange(new string[] { });
// Uncomment if you are using Slate UI
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
// Uncomment if you are using online features
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
}
}