Programmatically change the Game Window resolution

Hello!

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?
Cheers!

Perhaps this is what youre looking for?

http://docs.unity3d.com/Documentation/ScriptReference/Screen.SetResolution.html

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.
[74711-gameviewresizer.zip|74711]