GUIStyle.onNormal 在常态下

var onNormal : GUIStyleState

Description描述

Rendering settings for when the control is turned on.

用于当控件被打开时的渲染设置。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void OnGUI() {
		if (GUI.skin.customStyles.Length > 0)
			GUI.skin.customStyles[0].onNormal.textColor = Color.red;

	}
}
function OnGUI() {
	if(GUI.skin.customStyles.Length > 0)
		GUI.skin.customStyles[0].onNormal.textColor = Color.red;
}
Page last updated: 2011-1-20