ZzZzZzZz
ZzZzZzZz

Reputation: 77

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?

Upvotes: 4

Views: 27687

Answers (2)

WolfWorms
WolfWorms

Reputation: 81

Since this is one of the highest results on google I figured I'd reply here.

Using console commands to set resolution absolutely DOES NOT WORK for shipping builds where console commands are disabled. It's better to use Get Game User Settings + Set Screen Resolution + Apply Resolution Settings nodes.

Upvotes: 8

kjbradley
kjbradley

Reputation: 335

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

Upvotes: 2

Related Questions