We are using streaming levels with the level compositor. I want to automate building lighting. I’ve been trying different variations of UE4Editor-Cmd.exe such as:
UE4Editor-Cmd.exe C:\Full\Path\To\Project.uproject -run=resavepackages -buildlighting -quality=high -FullLoadAndSave -AllowCommandletRendering -stdout -map=<see_below> -messaging
For the map, if I just specify the persistent level, then it only builds the lighting for the persistent level and does not built it for any of the streamed levels. If I pass in the all of the levels (using the level+level+level syntax), then it does build the lighting for all of the levels, but it seems to build each of the levels in isolation instead of loading them all and then building the lighting. Hence, the generated lighting is invalid since parts of the level that are affected by other levels do not get built (and indeed, when I load them in the editor, it says that lighting needs to be rebuilt.)
If I build from the editor by loading all of the levels and then use the “Build Lighting” menu option, it builds the light maps correctly.
Is there some additional command line arguments that I need to specify to build the lighting correctly?