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

var onFocused : GUIStyleState

Description

Rendering settings for when the element has keyboard and is turned on.

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

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;

}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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