Version: 2017.1
public RectOffset padding ;

Description

Пространство от края GUIStyle до начала контента.

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); } }