- Home /
Problem is not reproducible or outdated
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.
Answer by clunk47 · Dec 15, 2012 at 12:43 AM
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...)
Answer by crazyKnight · Sep 07, 2011 at 11:25 AM
have a look at the following link
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?
Answer by Brenden-Frank · Dec 14, 2012 at 11:28 PM
http://docs.unity3d.com/Documentation/ScriptReference/PlayerSettings-defaultScreenWidth.html
Something like this could do the trick for you.
Unfortunately I did just realize its an editor class.
Follow this Question
Related Questions
help with an aspect ratio screen 1 Answer
How to make game mode show retina display 0 Answers
Setting a game size 0 Answers