Unity if (qualitylevel...)?

I want to make a script that turn on and off camera effects and objects depending on the quality level, but how do I make an if statement for quality settings? I tried:



but that just seems to be completly the wrong way.

Hi there @me2000 You’re pretty close you just need to state what the if statement is looking for. Unity has a Get method for the current quality level index which you can use to compare in the conditional.
For example:

		if(QualitySettings.GetQualityLevel() == 1)
			//Do stuff here.

Remember to always have a look at the scripting reference as every possible variable, method, enum etc. That a class can have is listed there. Have look here: QualitySettings Scripting Reference for more. Hope this helped :slight_smile: