Cycling through visual quality levels.
Hi there, I'm working on my first game and am working on my settings menu. I was wondering how I could cycle through the quality levels. I know about QualitySettings.SetQualityLevel (X, true);
But how could I do something like
if (Input.GetKeyDown(KeyCode.Return))
{
// Increase game quality by 1, if at 5, go back to 1
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612215110im_/https://answers.unity.com/themes/thub/images/avi.jpg)