Recompiling C++ projects
Whenever you make changes to your C++ project, including code changes, adding new source files, and removing unused source files, you need to recompile the C++ project.
The simplest and most straightforward way is to click the Recompile and Reload button in the bottom-right corner of the UE editor:
Figure 5.8 – The Recompile and Reload button recompiles and reloads C++ code for game systems on the fly
Sometimes, this may not work because of the addition or removal of classes from the project. If this is the case, you can close the UE editor and build the project or the solution in Visual Studio.
If you manually delete source files in File Explorer, you should regenerate the Visual Studio project files before recompiling. To complete this task, find your Pangaea.uproject
file in File Explorer, right-click on the .uproject
file, and choose Generate Visual Studio project files from the pop-up menu: