GUIStyle.onHover

var onHover : GUIStyleState

Description

Rendering settings for when the control is turned on and the mouse is hovering it.

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

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void OnGUI() {
if (GUI.skin.customStyles.Length > 0)
GUI.skin.customStyles[0].onHover.textColor = Color.cyan;

}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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