var contentOffset : Vector2
Description描述
Pixel offset to apply to the content of this GUIstyle
像素偏移适用于这个GUIstyle内容。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnGUI() {
if (GUI.skin.customStyles.Length > 0)
Debug.Log(GUI.skin.customStyles[0].contentOffset);
}
}