I was scripting a button's OnClick function when, to set the quality settings, like this
#pragma strict
var buttons : GameObject[];
var quality : int;
function Start () {
}
function OnClick () {
QualitySettings.SetQualityLevel(quality, true);
}
The console said: "SetQualityLevel is not a member of QualitySettings".
Then I though it was a bug with unity, but I did the same line in an empty project and it didn't hit a compiler error. Then I thought it was one of the plugins messing up, and I deleted a all the other plugins, but nothing so I had to restore them because the error didn't go away, then I deleted the NGUI and Plugins folder, and then it worked. I restored it and tried scripting the same thing in C# and it worked, even after doing the supposed "NGUI Javascript setup" where you move the folders to the plugins and ngui folder.
TL;DR:
QualitySettings.SetQualityLevel() doesn't work in js even after doing the js setup in NGUI.