Dear Epic,
#The New Template Plugins Dont Compile
#Repro Case
-
Create a new plugin using the new editor plugins “New Plugin” button.
-
Make it the middle option, to create a plugin that adds a button to the Level Editor toolbar.
-
You’ll see an error pop up saying the code could not be compiled.
-
If you try to then compile your project where you added the plugin code, you’ll get this error:
C:\Program Files\Epic Games\4.9\Engine\Source\Editor\UnrealEdMessages\Classes\AssetEditorMessages.h(5): fatal error C1083: Cannot open include file: ‘AssetEditorMessages.generated.h’: No such file or directory
-
In your project’s build cs make sure to include your new plugin as a depedency so that it gets compiled.
-
Successive compiles for development win64 will produce the error if you did not see it the first time.
#If You Dont See The Error
Please delete your plugin binaries and recompile your project that contains the plugin template code, for Development Win64, and you will see the error if it did not show the first time.
#More info
I extend UnrealEdEngine for my Vertex Snap Editor plugin, and in 4.9 it will not compile because including UnrealEd is not working due to what seems like an intenral error.
class UVictoryEdEngine : public UUnrealEdEngine
{
All the way until 4.9 this was the build CS:
#Build CS
// Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class VictoryEdEngine : ModuleRules
{
public VictoryEdEngine(TargetInfo Target)
{
PublicDependencyModuleNames.AddRange(
new string[] {
"Core",
"CoreUObject",
"Engine",
"InputCore",
"UnrealEd", //<~~~~
"Slate",
"SlateCore",
"ImageWrapper"
}
);
}
}
#Compile Error
1>C:\Program Files\Epic Games\4.9\Engine\Source\Editor\UnrealEdMessages\Classes\AssetEditorMessages.h(5): fatal error C1083: Cannot open include file: 'AssetEditorMessages.generated.h': No such file or directory
#Summary
I make no mention of AssetEditorMessages anywhere in my code base, it seems to be internal to UnrealEd module
I did a file search and “AssetEditorMessage” is literally not mentioned anywhere in my entire plugin code
#Question
Is there another way I can extend UnrealEdEngine?
#Looked at 4.9 Plugin Template
In the 4.9 plugin template UnrealEd is included as a private dependency, I tried changing my UnrealEd dependency to private in the build.cs but that did not improve anything.
EDIT: 4.9 plugins created from template dont compile either! Same error message!
Anyone at Epic have any insight on this matter?
#Thanks!