public Vector2 contentOffset ;

Descripción

Pixel offset to apply to the content of this GUIstyle.

using UnityEngine;

public class Example : MonoBehaviour { // Prints the value of contentOffset.

void OnGUI() { Debug.Log(GUI.skin.button.contentOffset); } }