Having to restart editor after c++ changes

I’m fairly new to programming C++ in UE4, and I’m running into some frustrating workflow issues.

I have the following line inside of a function

GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Blue, TEXT("This is the log!"));

Whenever I change the text int the debug log message, build the code successfully, when I relaunch the PIE expecting to see the updated code, it instead shows what the text said pre-change. The only way I can get it to display correctly is by restarting the UE editor.

Am I missing something here?

Do you have any pluggin in your code ?

Anyway, try the folowing : Windows->Developer tools → Modules
Then find you game module and click the compile button.

I do have the same problem as you, but it linked to my pluggins and this solution works for me :slight_smile:

Na, not currently using any Plugins, just a blank c++ project with my few code files in it.

To compile changes in C++, you either need to close the editor down, compile, and re-open the editor, or use Hot reload of the project.

In the editor, in the top bar, there should be a ‘Compile’ option, which will compile and reload your code.

Type the command “livecoding.compile” in the unreal engine cmd prompt.