public Vector2 contentOffset;

Description 描述

Pixel offset to apply to the content of this GUIstyle.

using UnityEngine;

public class Example : MonoBehaviour { // Prints the value of contentOffset.

void OnGUI() { Debug.Log(GUI.skin.button.contentOffset); } }