Having Trouble Adding C++ Functionality

Hey everyone,

I am trying for the first time to add some C++ classes to my UE game.

Following some guides I created the new class, added the relevant code to the .cpp and .h files.
Then did a rebuild.

There were some errors and from that point, anything I tried to do to solve it, resulted in my project not getting loaded anymore in the real engine.

To fix the build issues I tried to remove the binaries/intermediate folders, then rebuild.
Always getting some small issue or warning, but even with a warning my project doesn’t load anymore, always in this way:

Then it fails to compile them.

I try manually from VS, also doing “regenerate project files”. clean build, rebuild. nothing works.

I can then revert to an old project which works. But then I am not sure how to proceed without breaking my project.

Any tips?

Without getting into VS, everything works nicely, but I really need the C++ classes.

Thanks a lot.

When compiling manually can you post error logs here so we can get an idea ?

I don’t know the details of your C++ classes, but it could be that you’ve added functionality and references for modules that are missing from your C# build file? .Build.cs. Maybe you need to add in the modules to the PublicDependencyModuleNames list?

I have a positive development,

So it turns out, if I compile and then replace the plugins with a fresh copy - it works! so I think the plugins broke it, the designers of the plugins don’t me they should not be recompiled.

So now I just go Rebuild Only-> My project. So the build completes. And then I replace the plugin folder - it seems to work.

When it’s time to package your project it might be forced to compile the plugin again for shipping config unless the plugin is editor only.