var onFocused : GUIStyleState
Description描述
Rendering settings for when the element has keyboard and is turned on.
用于当元素有键盘焦点并且被打开时的渲染设置。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnGUI() {
if (GUI.skin.customStyles.Length > 0)
GUI.skin.customStyles[0].onFocused.textColor = Color.green;
}
}
function OnGUI() {
if(GUI.skin.customStyles.Length > 0)
GUI.skin.customStyles[0].onFocused.textColor = Color.green;
}