How to access quality settings?

My guess was that it was QualitySettings.GetQualityLevel(), but that returns 1 in the editor regardless of what I set the default quality level to.

Just go to Edit → Project Settings → Quality