Why does the GUI disappear?

I have a main menu which on it is an options. When I go past 1366x768, which is the resolution on my laptop, it disappears. Could anyone please explain why this happens, and how to avoid it?
Here is the code:

#pragma strict
var skin : GUISkin;

private var i : int = 0;
private var Options : boolean = false;
private var LoggedIn : boolean = true;

function Start () {
	
}

function OnGUI () {
	GUI.skin = skin;
	if (LoggedIn && Options == false)
	{
		if (GUI.Button(Rect(Screen.width /32 + 50,Screen.height/ 6 + 5,400,50), "Singleplayer"))
		{
			Application.LoadLevel("Level");
		}
		if (GUI.Button(Rect(Screen.width /32 + 50,Screen.height/ 6 + 60,400,50), "Multiplayer"))
		{
			Application.LoadLevel("Multiplayer_NonAuth");
		}
		if (GUI.Button(Rect(Screen.width /32 + 50,Screen.height/ 6 + 115,400,50), "Options"))
		{
			Options = true;
		}
		if (GUI.Button(Rect(Screen.width /32 + 50,Screen.height/ 6 + 170,400,50), "Logout"))
		{
		}
		if (GUI.Button(Rect(Screen.width /32 + 50,Screen.height/ 6 + 225,400,50), "Quit"))
		{
			Application.Quit();
		}
	}
	else if (LoggedIn && Options)
	{
		var resolutions : Resolution[] = Screen.resolutions;
		GUI.Label(Rect(Screen.width /32 + 50,Screen.height/ 6 + 5,400,50), "Screen Resolution:");
		if (GUI.Button(Rect(Screen.width /32 + 455,Screen.height/ 6 + 5,750,50), resolutions_.width + "x" + resolutions*.height))*_

* {*
* if (i == resolutions.Length)*
* {*
* i = 0;*
* }*
* else*
* {*
* i++;*
* }*
* }*

* if (GUI.Button(Rect(Screen.width /32 + 50,Screen.height - (Screen.height/ 6),400,50), “Save and exit”))*
* {*
Screen.SetResolution(resolutions_.width, resolutions*.height, Screen.fullScreen, 60);
Options = false;
}
if (GUI.Button(Rect(Screen.width /2 + 50,Screen.height - (Screen.height/ 6),400,50), “Exit without saving”))
{
Options = false;
}
}
}*

Cheers:
Stormy102_

PS. If you want to test it, it must be built, as there is a bug in the editor that only shows 640x480.

bump!!!!!!

bumpity bump bump!

bump again!

1 Answer

1

This could be a bug, please submit a bug report following these guidelines: