I am trying to change the QualitySettings at runtime by the following code.
public Dropdown GraphicQuality;
private void Awake()
{
GraphicQuality.AddOptions(QualitySettings.names.ToList());
GraphicQuality.onValueChanged.AddListener(level => QualitySettings.SetQualityLevel(level, true));
}
It works fine in Unity Editor. However, when I tried to change the setting in the build version,