Hello guys, basically my problem is that i’m creating an in-game Menu, with “options”, “start game” and all that sort of things, and in the “options” tab I have a general quality setting.
But my script isn’t working, I read the Unity Scipt Reference page regarding all the Quality scripts (SetQualityLevel, GetQualityLevel, Increase and Decrease);
Here is my code (really simple):
var qualityLevel = QualitySettings.GetQualityLevel();
function Update () {
GetComponent.<TextMesh>().text = "Quality: " + qualityLevel;
}
And then I attach the script to a Text object, but i get an error from the compiler, saying that “GetQualityLevel” is not a member of “QualitySettings”.
WHAT IN THE WORLD does it mean? It’s clearly written in the Reference page that to return the quality level you need to use that variable (Here is the page), am I doing something wrong? How can I make the script say what graphics setting I have?