Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

GUISkin.label

Switch to Manual
public GUIStyle label;

Description

Style used by default for GUI.Label controls.

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