x


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?

more ▼

asked Aug 05 '10 at 05:00 PM

Josh 4 gravatar image

Josh 4
156 4 4 13

Why don't you just hide the dialogue or do you still want your user to have access to the niceness settings

Aug 05 '10 at 11:46 PM cncguy

Why do you want this? Sounds like bad design.

Sep 26 '10 at 08:38 AM NPSF3000
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.)

more ▼

answered Sep 25 '10 at 01:40 PM

PeterDC gravatar image

PeterDC
277 2 4 14

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.

Oct 06 '10 at 08:01 AM Kourosh
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x378
x32

asked: Aug 05 '10 at 05:00 PM

Seen: 1556 times

Last Updated: Aug 05 '10 at 05:00 PM