Version: 2020.2
public GUIStyleState onActive ;

描述

启用和按下元素时的渲染设置。

using UnityEngine;

public class Example : MonoBehaviour { // Sets the text color of button to yellow when an // element is turned on and pressed down. void OnGUI() { GUI.skin.button.onActive.textColor = Color.yellow; } }