GUIStyle.focused

var focused : GUIStyleState

Description

Rendering settings for when the element has keyboard focus.

JavaScript
    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