var hover : GUIStyleState
Description描述
Rendering settings for when the mouse is hovering over the control
用于当鼠标悬停在控件之上时的渲染设置。
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);
}
}