QualitySettings.currentLevel Manual     Reference     Scripting  
Scripting > Runtime Classes > QualitySettings
QualitySettings.currentLevel

static var currentLevel : QualityLevel

Description

Current graphics quality level.

JavaScripts
using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
QualitySettings.currentLevel = QualityLevel.Good;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
QualitySettings.currentLevel = QualityLevel.Good

Note that changing the quality level can be an expensive operation if the new level has different anti-aliasing setting. It's fine to change the level when applying in-game quality options, but do not try changing it each frame. If you want to dynamically adjust quality level at runtime, use IncreaseLevel and DecreaseLevel functions which do not apply anti-aliasing changes.

See Also: QualityLevel enumeration, Quality Settings.