Version: 2020.1
언어: 한국어
public RectOffset padding ;

설명

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

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