从GUIStyle边缘到内容起始处的间距。
using UnityEngine;
public class Example : MonoBehaviour { // Prints the left, right, top and down values of the GUIStyle overflow
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); } }