UE4.7.3 Default window size

How can I set the default window size for a packaged game? I used to do this with ResolutionSizeX and ResolutionSizeY in DefaultGameUserSettings.ini or in the GameUserSettings.ini in Library/Preferences, but at list on mac in the most recent versions of Unreal this doesn’t seem to work anymore…

Any feedback?

What I ended up doing was passing the resX and resY command line parameters to the game to set the window size…

Thank you, works great! I would also be interested in understanding how to set this via preference files, but right now for my purposed your suggestion is enough.

I just tried with UE 4.7.5 on OS X 10.10.2 and for me it seems to work, I use the following /MyProject/Config/DefaultGameUserSettings.ini:

[/Script/Engine.GameUserSettings]
bUseVSync=False
ResolutionSizeX=720
ResolutionSizeY=405
LastUserConfirmedResolutionSizeX=720
LastUserConfirmedResolutionSizeY=405
WindowPosX=-1
WindowPosY=-1
bUseDesktopResolutionForFullscreen=False
FullscreenMode=2
LastConfirmedFullscreenMode=2
Version=5

You probably don’t need all of that, but I understood e.g. Version=5 might be important. Also note that I did not configure anything in Library/Preferences, but have this file in my project directory. I hope this helps!

Hi, this doesn’t seem to work for me. Also, resX and resY command line parameters don’t work anymore in 4.8 (I get an error about not finding the requested map). Any idea?

Hey, I just tried running a small 4.8.1 packaged project with ResX=1024 ResY=768 from a windows command prompt and it opened at that size ok. I tried resX as well just to make sure it is still case insensitive which it is. I can’t get the command line parameters to work from visual studio though…

Not working anymore on 4.8 :confused:

On mac it actually resizes the window, but the I get a message saying that the map that was meant to be loaded at startup cannot be found…

Ok, ResX=1024 ResY=768 works on mac too in 4.9!

working again in 4.9 on mac!