Hi.
I am trying to add “UnrealEd” module as dependency into my plugin as I need to do some operations in the editor module, and it includes usage of ThumbnailTools.
I tried to add it like this into my BUILD file:
if (Target.Type == TargetRules.TargetType.Editor)
{
PublicDependencyModuleNames.Add("UnrealEd");
//also tried PrivateDependencyModuleNames.Add("UnrealEd");
}
Once I do it, the compiler starts spitting errors in my code for different modules as well as errors inside the other modules I have been using. All of the errors are of the form:
“undeclared identifier” or “is not a class or namespace”. This seems like the adding of “UnrealEd” module removes all the other modules. My other deps are these:
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
"AVEncoder",
"UMG",
"ImageWrapper",
"CoreUObject",
"CinematicCamera"
// ... add other public dependencies that you statically link with here ...
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"Engine",
"Slate",
"SlateCore",
"RenderCore",
"AVEncoder",
"InputCore",
"RHI",
"Projects" //needed for usage of IPluginManager
}
);
Tried to add “UnrealEd” before,after,together with the other depds ,but same thing. The build breaks.