GUIStyle.imagePosition 图片位置

var imagePosition : ImagePosition

Description描述

How image and text of the GUIContent is combined.

GUIContent的图片和文本如何组合。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void OnGUI() {
		if (GUI.skin.customStyles.Length > 0)
			Debug.Log(GUI.skin.customStyles[0].imagePosition);

	}
}
// Prints how image and text is placed inside customStyles[0]
//打印customStyles[0]里图片和文本放置的位置

function OnGUI() {
	if(GUI.skin.customStyles.Length > 0)
		Debug.Log(GUI.skin.customStyles[0].imagePosition);
}
Page last updated: 2011-1-20