Well, I have set up the unity quality settings, but it's still the same. I also tried this:
using UnityEngine;
[ExecuteInEditMode]
[RequireComponent
(typeof(UIWidget
))] [AddComponentMenu("NGUI/Examples/Set Color on Selection")]
public class SetQualityLevel : MonoBehaviour{
UIWidget mWidget;
void OnSelectionChange (string val){
if (mWidget == null) mWidget = GetComponent<UIWidget>();
switch (val)
{
case "Lowest": QualitySettings.SetQualityLevel(1, true); break;
case "Lower": QualitySettings.SetQualityLevel(2, true); break;
case "Low": QualitySettings.SetQualityLevel(3, true); break;
case "Normal": QualitySettings.SetQualityLevel(4, true); break;
case "High": QualitySettings.SetQualityLevel(5, true); break;
case "Ultra": QualitySettings.SetQualityLevel(6, true); break;
}
}
}
and putting the Lowest, Lower into "".
The version with numbers doesn't show any error, but it doesn't work. (Tried in both, Unity Editor and Stadnalone)
EDIT: My quality settings are in pic.