I created a basic plugin structure using the Plugin Creator. Everything compiles just fine, but as soon as I try to add my own Classes all hell breaks out.
I didn’t touch anything else. Just wanna start declaring a simple Struct,
It compiles when I hit the “Compile” Button in UE but if I try to build it in VS it fails with several errors in “DatTestPlugin.generated.h”. In both cases it doesn’t show up in the available classes/structs in UE.
I’m struggeling with these kinds of Plugin fails for two days now, having consumed all tutorials and Plugin examples I could find.
What did I miss? I’m developing for more than 10 years now in VS and still too stupid for the easiest things…
So, there aren’t any significant differences (read any) in regards to coding standards and practices between working in a plugin or a standard game module. Best steps at this point would be for you to post a link to your PasteBin’d logs for review.
Hopefully you have already seen the article on the wiki regarding plugin development for UE4. It was written a while ago but applies just as much now as it did then.
Yeah I read that one, too. But it doesn’t explain how to create own UClasses as it only shows “Modules”.
This is what VS keeps telling me: http://pastebin.com/ZJzCjcWG
The errors are in German, I hope you don’t mind. You should still get an idea of what they mean. Technical terms aren’t that different. But downloading and configuring the ENU Lang Pack would simply take too much time now.
As szyszek and zoombapup are saying, the errors are relating to core UE types, and are suggesting that you are missing references to the core public modules for UE4 macros and types to be defined.