Confused about class header declarations for Unreal

Either change it to the module name like ugmoe suggests or remove it (as you found).

That macro is part of the dll/module exporting functionality. The editor builds all the modules of a plugin (including your game module) as a dll (dynamic link library) so there has to be a little bit of extra info to specify what “things” should be accessible to those users of the dll.

If you’re not doing any plugin development or otherwise trying to organize your code across multiple plugins/modules then you can just omit this macro from any examples.

1 Like