I’ve got a plugin that I’m writing and I’m trying to create an interface class declaration, but UHT/UBT is giving me some strange errors that appear to be a generation failure:
Building UnrealHeaderTool...
2> Target is up to date.
2> Parsing headers for GroundBranchEditor
2>LogWindows : error : Windows GetLastError: The operation completed successfully. (0)
2>Error : Failed to generate code for GroundBranchEditor - error code: CrashOrAssert (3)
It seems like something is asserting or crashing, but how would anyone know from that error?
So what I’ve got as code in the .h file that gives this problem?
UINTERFACE()
class TACTICALAI_API UTestInterface : public UInterface
{
GENERATED_UINTERFACE_BODY()
};
Which leads me to think that there’s something wrong with declaring UINTERFACE classes in plugins for some reason. Of course there’s no documentation that seems worthwhile for this, so I’m hoping some kind soul on answerhub can shed some light.
Anyone ever successfully managed to compile an interface within a plugin? Are there any particular restrictions?