Tutorial: UE 4.27 the method to set the default resolution for the packaged Windows PC client

  1. Create a new configuration file Projects\<ProjectName>\Config\DefaultGameUserSettings.ini.
  2. Write the following content:
    [/Script/Engine.GameUserSettings]
    bUseVSync=False
    ResolutionSizeX=1334
    ResolutionSizeY=750
    WindowPosX=-1
    WindowPosY=-1
    bUseDesktopResolutionForFullscreen=False
    FullscreenMode=2
    Version=5
    
  3. Restart the editor.
    1. If you skip this step, the config you wrote will not be effective in the final packaged content.
  4. Package for Windows.
  5. After running the Windows package, you can view build\WindowsNoEditor\<ProjectName>\Saved\Config\WindowsNoEditor\GameUserSettings.ini.

Note: Various items such as LastConfirmed are automatically managed in Saved. You don’t need to write them in the project ini file.