The main game module seems naturally set up for the property system, but I’m struggling trying to add support for the property system to plugins. I’ve added the CoreUObject module to the public dependencies of the plugin and added the #include ScriptManager.generated.h as the last #include directive and inherit from UClass.
However I get a huge list of errors mostly if not all deriving from the very first in the list:
error C2504: 'UClass': base class undefined
If I now try to #include "UObject/Class.h" I get a new list of errors all originating in UObject/Class.h referring to undeclared identifiers.
Are you creating the plugin via the plugin wizard? If so, which type? I ask because generally the wizard should add the relevant base dependencies. Others you will have to add yourself.
For the plugin’s main source file, yes. I was adding another file next to that file which lacked that header. For that I did not use the Editor’s Add C++ Class wizard as I find it too time consuming to switch back and forth between the editor and the IDE. I simply forgot that substantial include.