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.

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.