GUIContent.text

Unity · Версия 2020.3 LTS · Scripting · GUIContent

GUIContent.text

public string text;

Описание

Содержащийся текст.

using UnityEngine;

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

Обновлено 17 ноября 2026 г.