in 4.8.2 anytime I modify the generated GameMode.h header for a C++ project (I tried both 3rd and 1st Person Templates) the project stops compiling
in 4.8.2 anytime I modify the generated GameMode.h header for a C++ project (I tried both the 3rd and 1st Person Templates) the project stops working. All I have to do for it to break is add another #include and it stops compiling
Doing the same thing in 4.7.6 works perfectly.
I was following the C++ 3rd person tutorial and when I got to the game mode and tried to add an enum class to the header, the project just stopped building properly.
asked Jul 20 '15 at 11:06 AM in C++ Programming
Modifying the header file seems to invalidate the MyClass.generated.h. If errors are related to the generated code (e.g. the UCLASS macro, binding to delegates, etc.) it is worth at least doing a compile so at least you get real errors (or, as in this case, eliminating them!).
answered Jul 20 '15 at 03:19 PM
I just ran into the same problem.
Solution was to close Visual Studio and Unreal Editor, then go to your project folder like ...
... and delete the Intermediate folder, then right click your MyProject1.uproject file and select ...
When he is done, open your project again in Unreal Editor / Visual Studio and you should be fine. :)
I also found out that those errors mostly have their origin in a problem in your code. So instead listening to what the
Follow this question
Once you sign in you will be able to subscribe for any updates here