public GUIStyleState hover ;

Descripción

Rendering settings for when the mouse is hovering over the control.

using UnityEngine;

public class Example : MonoBehaviour { // Prints the text color that button is using // when the mouse is hovering over a control

void OnGUI() { Debug.Log(GUI.skin.button.hover.textColor); } }