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

var imagePosition : ImagePosition

Description

How image and text of the GUIContent is combined.

JavaScript
// 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)