GUIStyle.focused Manual     Reference     Scripting  
Scripting > Runtime Classes > GUIStyle
GUIStyle.focused

var focused : GUIStyleState

Description

Rendering settings for when the element has keyboard focus.

JavaScripts
function OnGUI() {
if(GUI.skin.customStyles.Length > 0)
GUI.skin.customStyles[0].focused.textColor = Color.blue;
}

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void OnGUI() {
if (GUI.skin.customStyles.Length > 0)
GUI.skin.customStyles[0].focused.textColor = Color.blue;

}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def OnGUI():
if GUI.skin.customStyles.Length > 0:
GUI.skin.customStyles[0].focused.textColor = Color.blue