When trying to package my game I get the following error:
UATHelper: Packaging (Windows): Unable to instantiate module ‘UnrealEd’: Unable to instantiate UnrealEd module for non-editor targets.
UATHelper: Packaging (Windows): (referenced via Target → MyGame.Build.cs → Blutility.Build.cs → MainFrame.Build.cs → Documentation.Build.cs)
UATHelper: Packaging (Windows): Took 0.80s to run dotnet.exe, ExitCode=8
How do I fix this?
I have tried removing the references to UnrealEd and doing the following in the .build.cs files referenced above:
if (Target.bBuildEditor)
{
PrivateDependencyModuleNames.AddRange(new string {“UMGEditor”, “UnrealEd” });
}