GUIStyle.contentOffset

var contentOffset : Vector2

Description

Pixel offset to apply to the content of this GUIstyle.

JavaScript
    // Prints the value of contentOffset inside customStyles[0]

function OnGUI() {
if(GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].contentOffset);
}

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void OnGUI() {
if (GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].contentOffset);

}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def OnGUI():
if GUI.skin.customStyles.Length > 0:
Debug.Log(GUI.skin.customStyles[0].contentOffset)