- Home /
Available Resolutions In Resolution Dialog
Is it possible to change the available screen resolutions in the resolution dialog? I have removed all other aspect rations except for 4:3 (which my project requires) and the available resolutions are 1024x768, 800x600, and 640x480. The only one I actually want accessible by the user is 1024x768. Is it possible to remove these others?
Why don't you just hide the dialogue or do you still want your user to have access to the niceness settings
Answer by PeterDC · Sep 25, 2010 at 01:40 PM
I've looked at the Player Settings and there doesn't seem to be any way to do this, but you could use something like this simple javascript to change the resolution to 1024x768 when the game starts:
function Start () {
Screen.SetResolution(1024, 768, false);
}
This just sets the screen's width to 1024, the screen's height to 768, and sets fullscreen to off, all at the game's start. (Change false
to true
to turn fullscreen on.)
Yes, and I also want to add that you can disbale the resolution size dialog in Edit>Project Settings>Player>Display resolution dialog and just disable it.