GUIStyle.normal Manual     Reference     Scripting  
Scripting > Runtime Classes > GUIStyle
GUIStyle.normal

var normal : GUIStyleState

Description

Rendering settings for when the component is displayed normally.

JavaScript
// Prints the text color that customStyles[0] is using

function OnGUI() {
if(GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].normal.textColor);
}

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);

}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def OnGUI():
if GUI.skin.customStyles.Length > 0:
Debug.Log(GUI.skin.customStyles[0].normal.textColor)