GUISkin.label 标签

var label : GUIStyle

Description描述

Style used by default for GUI.Label controls.

用于GUI.Label控件的默认样式。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public GUIStyle style;
	void OnGUI() {
		GUI.skin.label = style;
		GUILayout.Label("This is a label.");
	}
}
// Modifies only the label style of the current GUISkin
//修改当前GUISkin的label样式

var style : GUIStyle;

function OnGUI() {
	GUI.skin.label = style;
	GUILayout.Label("This is a label.");
}
Page last updated: 2011-1-25