Search code examples
unreal-engine4screen-resolution

How to set the screen resolution in Unreal Engine 4?


I am making a settings menu for my game. I have created every graphics setting I want, except changing the screen resolution. This is what I tried first. I didn't know what I should provide for the target, though.

What I tried first

For some reason, this didn't work. I'm guessing I should have provided a different target. Can somebody help me with this?


Solution

  • Is this a PC game? If so, this is the node I've used for altering resolution in the past, utilizing the r.setRes command:

    enter image description here

    If you have variable [width] x [height] parameters, have a function build the string and pass the return value to that node. Note: after the WxH, the f stands for fullscreen.

    Credit for image: https://answers.unrealengine.com/questions/26895/how-can-i-change-games-resolution-in-blueprints.html