Hi, i need help with my setting menu i’m trying to figure out how to make it so that in the game the player can change the quality (to fastest, fast, good, simple so on) using the UI. I was trying to make it
Like this :
or
Thanks in advance.
Hi, i need help with my setting menu i’m trying to figure out how to make it so that in the game the player can change the quality (to fastest, fast, good, simple so on) using the UI. I was trying to make it
Like this :
or
Thanks in advance.
Are you asking for help getting your script to work, or are you asking for someone to write a script for you?
Help getting it to work ha forgot to put it in
#pragma strict
function OnGUI () {
GUI.Box (Rect (10,10,200,1000), "Graphics Resolution");
if (GUI.Button (Rect (20,40,80,20), "Fastest")) {
QualitySettings.currentLevel = QualityLevel.Fastest;
}
// Make the second button.
if (GUI.Button (Rect (20,70,80,20), "Fast")) {
QualitySettings.currentLevel = QualityLevel.Fast;
}
// Make the second button.
if (GUI.Button (Rect (20,100,80,20), "Simple")) {
QualitySettings.currentLevel = QualityLevel.Simple;
}
// Make the second button.
if (GUI.Button (Rect (20,130,80,20), "Good")) {
QualitySettings.currentLevel = QualityLevel.Good;
}
// Make the second button.
if (GUI.Button (Rect (20,160,80,20), "Beautiful")) {
QualitySettings.currentLevel = QualityLevel.Beautiful;
}
// Make the second button.
if (GUI.Button (Rect (20,190,80,20), "Fantastic")) {
QualitySettings.currentLevel = QualityLevel.Fantastic;
}
}
This is the code i’m using but i want to use the UI system.