Rendering settings for when the element has keyboard and is turned on.
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