Version: 2020.2
public GUIStyle label ;

描述

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."); } }