public GUIStyle label ;

Description

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

using UnityEngine;

public class Example : MonoBehaviour { // Modifies only the label style of the current GUISkin GUIStyle style;

void OnGUI() { GUI.skin.label = style; GUILayout.Label("This is a label."); } }