Version: 2023.1
public GUIStyleState hover ;

描述

鼠标悬停在控件上时的渲染设置。

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); } }