var normal : GUIStyleState
Description描述
Rendering settings for when the component is displayed normally.
用于该组件正常显示时的渲染设置。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnGUI() {
if (GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].normal.textColor);
}
}
// Prints the text color that customStyles[0] is using
//打印在customStyles[0] 使用的文本颜色
function OnGUI() {
if(GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].normal.textColor);
}
Page last updated: 2011-1-20