Visual studio 2022 and UE 5.1 - Compile works only after the UE editor closes

Hello,
I’m following this tutorial on using C++ with Visual Studio 2022 & UE 5.1.

In that tutorial the UE editor has to be shut down every time a build has to be triggered.

Is there a workaround to this ?

Should I just switch back to VS 2019 ?

Thank you,
b

Hello,
The editor needs to shut down every time during build because if you managed to recompile your code without exiting editor, code changes would appear only after editor reboot.
If you don’t want to always closing editor for recompiling, you can use live coding feature, but with caution, because it could corrupt your blueprints. I recommend to use live coding for small frequent changes (changing value of int constant or adding/changing a math expression, for example), but if you changing a lot of things, class constructor, adding a new C++ class or similar (or you just didn’t reboot your project for hours), make a full editor reboot with recompilation.

1 Like

Thank you for the live coding suggestion Nelen.

Just to confirm, this was never a problem for me in 4.27.
In all previous C++ tutorials we’d just have to build and the results would reflect in the editor.

I am assuming this has changed in 5.1 vs 2022 ?

Once again, thanks for the tips .

b