Change default resolution at runtime

EDIT: This was a missing feature in Unity’s Windows standalone executable, and has been fixed for some time now. This should be a non-issue in any version >3.5.


Is it possible to change the default resolution settings while in the game, via a custom in-game options screen?

I am aware that you can change the actual running settings at runtime (which is what I’m doing now), but I would like my game to start at the settings the user defined in the in-game options screen and not be set to them once some script runs, because you end up with the screen flickering a few times before things settle.

3 Answers

3

EDIT > PROJECT SETTINGS > PLAYER.

Then go to RESOLUTION AND PRESENTATION.

You will see under Resolution, Default Width and Default Height.

You can also disable Resolution Dialog popup at the start of your standalone, so people won't be able to change the res (if that's what you want, perhaps you want that only changed through an in game menu...)

have a look at the following link

Screen resolution

This is exactly not what I'm looking for :P I know how to change the resolutions at run time, I'm doing that already. I need to change the default start-up resolution, that is: the resolution that the Unity player "boots up" in before any scripts have run. Any ideas?

Something like this could do the trick for you.

Unfortunately I did just realize its an editor class.