Question about Live Coding

Hello. I wanted to ask if there was anyway I can update coding while running both Unreal Engine 5 and Visual Studio, rather than shutting down Unreal Engine every time I make edits to the codes? I keep getting the log:

Unable to build while Live Coding is active. Exit the editor and game, or press Ctrl+Alt+F11 if iterating on code in the editor or game FirstProject

1 Like

It seems like you have the editor launched outside of Visual Studio so when you try to build, they conflict. Launch your editor via Visual Studio and you should be good!

1 Like

You are unable to do that because live coding automatically compiles the code everytime you edit a file (that’s the first thing I disable because I’ve had so many problems with it, if I don’t restart the editor I always have a different problem, like child blueprints not updating, components missing or corrupted, et cetera).
I don’t think the problem is with live coding itself but with “hot reload”, because it happens even when it’s disabled.

I made a free plugin to restart the editor and I use it a lot, another method I use is to launch the project from the IDE with the debugger attached, when I change some code an I press F5 it automatically builds the solution and reloads the editor

3 Likes

Thank you all for your solutions and feebacks

1 Like

Hi @anonymous_user_8e2cbdcc

If your problem was solved, you can mark the reply as the solution with a button in the bottom right of the reply :slight_smile:

1 Like