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 control
function 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 UnityEngine
import System.Collections
class example(MonoBehaviour):
def OnGUI():
if GUI.skin.customStyles.Length > 0:
Debug.Log(GUI.skin.customStyles[0].hover.textColor)