adding C++ classes outside the editor

I have an existing project and tried adding new C++ classes (with GENERATED_UCLASS_BODY) and I’m getting errors because the corresponding generated.* files don’t exist. How do I get those files to be generated without adding the class through the editor? There are a bunch I’d like to add at once.

There should be nothing special you need to do as long as you got all the syntax correct. You could try right-clicking your project file and selecting ‘Generate Visual Studio project files’. If that doesn’t help, post your header file code.

Just add this line to the header file of your new object after all your other includes:

It will be generated on the next UHT launch.