How to disable Editor Live Coding via CLI arguments

Hi,

I’m moving CI build pipelines from UE4.27 to UE5.0. The script I use to rebuild lightmaps now breaks with an error:

LogLiveCoding: Error: Unable to find source project file 'C:/Program Files/Epic Games/UE_5.0/Engine/Binaries/Win64/'

The build step in question:

$ueEditorPath = "C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\Win64\UnrealEditor-Cmd.exe"
$step0params = "$projectPath -run=resavepackages -buildlighting -mapsonly -projectonly -allowcommandletrendering -messaging".Split(" ")
&{ &$ueEditorPath $step0params } 2>&1

Is there a way to disable LiveCoding for the build and release scenarios? I.e. I don’t want to disable it in the project, just for the automated build.

4 Likes

Reading the code, -UNATTENDED seems like it was supposed to disable it, but it didn’t work for me. I ended up just having the build scripts create a "UserEditorPerProjectUserSettings.ini " file in the ‘Config’ directory and then set its content to this:

[/Script/LiveCoding.LiveCodingSettings]
bEnabled=False
Startup=Manual
6 Likes

Slight update to @Daniel_The_S response for anyone bumping into this with UE5 - UserEditorPerProjectUserSettings.ini didn’t seem to do the trick, but instead changing DefaultEditorPerProjectUserSettings.ini, with the same values:

[/Script/LiveCoding.LiveCodingSettings]
bEnabled=False
Startup=Manual