Rendering settings for when the component is displayed normally.
// Prints the text color that customStyles[0] is usingfunction 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 UnityEngineimport System.Collectionsclass example(MonoBehaviour): def OnGUI(): if GUI.skin.customStyles.Length > 0: Debug.Log(GUI.skin.customStyles[0].normal.textColor)