Version: 2017.2
public GUIStyleState onFocused ;

描述

元素具有键盘焦点并且启用时的渲染设置。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnGUI() { GUI.skin.button.onFocused.textColor = Color.green; } }