|
Rendering settings for when the component is displayed normally.
// Prints the text color that customStyles[0] is using
function OnGUI() {
if(GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].normal.textColor);
}
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnGUI() {
if (GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].normal.textColor);
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def OnGUI():
if GUI.skin.customStyles.Length > 0:
Debug.Log(GUI.skin.customStyles[0].normal.textColor)