Version: 2020.1
public GUIStyleState focused ;

描述

元素具有键盘焦点时的渲染设置。

using UnityEngine;

public class Example : MonoBehaviour { void OnGUI() { GUI.skin.button.focused.textColor = Color.blue; } }