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

GUIContent.text

public string text;

Description

The text contained.

using UnityEngine;

public class ExampleScript : MonoBehaviour { void OnGUI() { GUI.Button(new Rect(0, 0, 100, 20), new GUIContent("Click me!")); } }