Version: 2017.3
public RectOffset padding ;

Descripción

Space from the edge of GUIStyle to the start of the contents.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { private RectOffset rctOff; void OnGUI() { rctOff = GUI.skin.button.padding; Debug.Log("Left: " + rctOff.left + " Right: " + rctOff.right); Debug.Log("Top: " + rctOff.top + " Bottom: " + rctOff.bottom); } }