if(isShowing == true){
scroll = GUI.BeginScrollView(new Rect(Screen.width / 2 + (buttonWidth / 2), Screen.height / 2 + 30, buttonWidth, Screen.height / 2 + 30), scroll, new Rect(0, 0, buttonWidth, 1000));
for (int i = 0; i < avaRes.Length; i++) {
Resolution resolution = avaRes[i];
int verticalPosition = startVerticalPosition + i * (verticalMargin + buttonHeight);
if (GUI.Button(new Rect(horizontalPosition, verticalPosition, buttonWidth, buttonHeight), resolution.width.ToString() + "x" + resolution.height.ToString())) {
isShowing = false;
Screen.SetResolution(resolution.width, resolution.height, true);
break;
}
}
GUI.EndScrollView();
}
is what i have, and it isnt working. i have it therefor overflow of screen resolutions for the current resolution. it isn working right. before i did it, it worked fine, but it doesnt anymore, because of the ScrollView