Hi
I want to make a quality settings menu. In a tutorial I found this easy solution
public void SetQuality (int qualityIndex)
{
QualitySettings.SetQualityLevel(qualityIndex);
}
It is attached to OnValueChanged in Dropdown Menu. There is equal number of options in dropdown and quality settings, but somehow it doesn’t work. Any ideas?
EDIT: I’m sorry for this grammar mistake in title but I can’t change it.
Hi,
how do you determine that it’s not working? Did you test manually calling SetQualityLevel(someNumber) to see if that’s working? Are you sure SetQuality is getting called? Did you test it?
Also, you can change the title. It’s by no means obvious tho. Somewhere at the top is thread options or something like that. In there you find the option to edit the title.
Yeah…, was looking for that a bit as well when i had a spelling mistake in a title lol.
I added Debug.Log(qualityIndex); and console shows that when I chose option from dropdown, the int changes too. But somehow the quality is the same. I opened ProjectSettings in new tab, and the quality level is always “Fantastic”.
I found the option to change the title, thanks!
EDIT: It’s one of these moments when I hate Unity alpha/beta version. In 2019.3 alpha Project Settings tab refresh only when the cursor is on it. Everything works fine…
Glad you found the problem. I’d generally not suggest using experimental versions for actual work, other than … experimenting around with new features. Always get something that is stable. Unless there is a new feature or fix in a newer update you rely on, it’s probably enough to stick with the 20XX.1 version as soon as it’s a stable release.
yes, it’s happen .
but not perfectly work, when tab refresh and quality level changed than it’s doesn’t show anything.
it’s doesn’t show any quality in my.
when i debug then it’s show quality level changed but in my game it’s not any quality, my game quality same it’s not changing
.