Programmatically change the Game Window resolution


I’ve been looking for a way to either programmatically change the resolution of the game window or add/change the predefined resolutions. So the resolution I want to be able to set, instead of having to manually resize with “Free Aspect”, are the ones shown as eg. “Screen: 1136*640” when showing “Stats”.

Any clues on how to accomplish this? Is it even possible?

Perhaps this is what youre looking for?

Hi @Thingummywut,
If you’re still looking for it, you may take a look at my doc.
And the script below~~ feel free to try it.