Setting game resolution for packaged games

When pacaking the game, how can I set the resolution to a desired aspect ratio, windowed or full monitor?.

Hello Endika,

If you’re interested in setting up the resolution for your packaged game, the best way would be to create a blueprint with an execute console command node. You would then use the “setres 800x600” as the command to execute (doesn’t have to be 800x600, you can use any resolution in there). Attach that to a begin play node and place it in your level and you should be good to go from there.

-Max B.

Thats the best way? Shouldn’t there be a config or something?

After checking the samples it looks like something like

[SystemSettings]
r.setres=1280x720

in the DefaultEngine.ini should do the trick.

Best,
Eckhard

There’s a function call you can use on the code side of things if that’s what you’re looking for:

GSystemResolution.RequestResolutionChange(int InResX, int InResY, bool bInFullScreen)

Hello,

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes. If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, could you please submit a new report for it.

Thanks!