QualitySettings.currentLevel 当前级别

static var currentLevel : QualityLevel


Current graphics quality level.


using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		QualitySettings.currentLevel = QualityLevel.Good;
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.


参见:QualityLevel 枚举

Page last updated: 2011-3-13