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

Did you find this page useful? Please give it a rating: