Content-Length: 18931 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/GUIStyle-padding.html
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); } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/GUIStyle-padding.html
Alternative Proxies: