LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GUISkin.label

Switch to Manual
public GUIStyle label;

Description

Style used by default for GUI.Label controls.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public GUIStyle style; void OnGUI() { GUI.skin.label = style; GUILayout.Label("This is a label."); } }