How to detect if it's editor build in Build.cs?

Try this:

if (Target.bBuildEditor)
{
	PrivateDependencyModuleNames.Add("UnrealEd");
}
7 Likes