[UE5.3] Overriding config parameters when cooking/packaging game with UAT

I’m setting up my build server and I need a way to override certain parameters in defaultEngine.ini for various build targets. I.e. switching between Vulkan and OpenGL support.

I found this solution which would suffice but ideally I’d prefer something with less engine modifications: https://medium.com/disruptivegames/config-injection-during-unreal-engine-4-builds-87e02b7ecc09

One option would be to write a script that just updates defaultEngine.ini directly and reverts it after the build finishes but that doesn’t seem ideal?

Does anyone know of a better solution?

I believe I’ve found a solution. From user Sswires on the Unreal Source Discord:

the setting: https://github.com/EpicGames/UnrealEngine/blob/release/Samples/Games/Lyra/Source/LyraGameEOS.Target.cs the INIs: https://github.com/EpicGames/UnrealEngine/tree/release/Samples/Games/Lyra/Config/Custom/EOS

So I’ve added CustomConfig = "MyTarget"; to one of my .target.cs files and added a new defaultEngine.ini in Config/Custom/MyTarget/

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.