6

Since I upgraded to UE 5 I keep getting this error

Error 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

Any solution ?

zac
  • 4,495
  • 15
  • 62
  • 127
  • @Crasher How to disable it in UE5 ? – zac May 27 '22 at 14:46
  • just don't build with the Unreal editor open. – Crasher May 27 '22 at 16:28
  • @Crasher live coding might be a form of hot reloading, but hot reload was in Unreal long before live coding was, and live coding is safe and you absolutely should use it. Epic bought out Live++ and integrated with Unreal specifically because their hot reload was broken. – Vii Jan 16 '23 at 06:10

3 Answers3

11

Maybe this is a solution, I choose DebugGame Editor profile

For error live coding not enabled for project dll you can try deleting the Binaries, DerivedDataCache, and Intermediate folders.

Community
  • 1
  • 1
zac
  • 4,495
  • 15
  • 62
  • 127
7

Live coding is enabled on EU5 by default. This feature requires building from Unreal instead of from the IDE.

To initiate a build with live coding enabled, press CTRL+ALT+F11.

Source: https://docs.unrealengine.com/5.0/en-US/using-live-coding-to-recompile-unreal-engine-applications-at-runtime/

Nadav Ruskin
  • 154
  • 1
  • 9
4

I ran into this issue as well while trying to build from Visual Studio Code by selecting run build task from the Terminal menu while having UE 5 Editor running. The solution for me was as simple as following the error suggestion.

  1. First, go to Edit > Editor Preferences > General > Source Code and make sure Visual Studio Code is selected.
  2. While in Editor Preferences, go to Live Coding and make sure Enable Live Coding is enabled.
  3. Make any code changes in VS Code and safe the file
  4. Build from the UE Editor and not Visual Studio code by pressing Ctrl+Alt+F11 in UE Editor