QualitySettings.currentLevel 当前级别

static var currentLevel : QualityLevel

Description描述

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.

注意,改变质量级别,如果新的级别抗锯齿设置不同,可能是一个消耗极大的操作。当运用游戏质量选项时,可以很好的改变这个级别。,但不尝试在每帧改变它。如果你想实时动态调节质量级别,使用IncreaseLevelDecreaseLevel函数,但这并不适用于消除锯齿的改变。

参见:QualityLevel 枚举

Page last updated: 2011-3-13