|
How image and text of the GUIContent is combined.
// Prints how image and text is placed inside customStyles[0]
function OnGUI() {
if(GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].imagePosition);
}
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnGUI() {
if (GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].imagePosition);
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def OnGUI():
if GUI.skin.customStyles.Length > 0:
Debug.Log(GUI.skin.customStyles[0].imagePosition)