PlayerSettings 播放器设置

Inherits from UnityEngine.Object

Player Settings is where you define various parameters for the final game that you will build in Unity. Some of these values are used in the Resolution Dialog that launches when you open a standalone game.

玩家设置,为将在Unity编译的最终游戏定义各种参数。当打开一个独立游戏,其中一些值使用在分辨率对话框。

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的Assets/Editor文件夹下。编辑器类在UnityEditor命名空间下。所以当使用C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。

Class Variables类变量

Class Functions类函数

Page last updated: 2011-10-6