GUIStyle.onNormal

var onNormal : GUIStyleState

Description

Rendering settings for when the control is turned on.

JavaScript
function OnGUI() {
if(GUI.skin.customStyles.Length > 0)
GUI.skin.customStyles[0].onNormal.textColor = Color.red;
}

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;

}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def OnGUI():
if GUI.skin.customStyles.Length > 0:
GUI.skin.customStyles[0].onNormal.textColor = Color.red