Question by 
               me2000 · Nov 09, 2015 at 11:11 AM · 
                javascriptgraphicsscriptingbasicsqualityqualitysettings  
              
 
              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:
 If(QualitySettings.QualityLevel(1)){
 
 }
but that just seems to be completly the wrong way.
               Comment
              
 
               
              Answer by Cepheid · Nov 09, 2015 at 02:27 PM
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 :)
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                