Rendering settings for when the mouse is hovering over the control
// Prints the text color that customStyles[0] is using// when the mouse is hovering over a controlfunction OnGUI() { if(GUI.skin.customStyles.Length > 0) Debug.Log(GUI.skin.customStyles[0].hover.textColor);}
using UnityEngine;using System.Collections;public class example : MonoBehaviour { void OnGUI() { if (GUI.skin.customStyles.Length > 0) Debug.Log(GUI.skin.customStyles[0].hover.textColor); }}
import UnityEngineimport System.Collectionsclass example(MonoBehaviour): def OnGUI(): if GUI.skin.customStyles.Length > 0: Debug.Log(GUI.skin.customStyles[0].hover.textColor)