How to change screen resolution at runtime

Hi!

I’m trying to add to my game a configuration menu where the player can change game resolution.

Maybe, I can do it using this:

Is this the way you normally do it?

I have also tried this:

But it seems, it doesn’t change the screen resolution.

How can I do it?

Thank you.

1 Like
2 Likes

Hey there @ViaCognita! I second Clockwork’s link, though one important thing to note that changing resolution (and other user settings) don’t take effect or save when in PIE (play in editor), so when testing this spin up a standalone window.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.