Unity 6.3
0 онлайн 0 гостей 3 в системе
Вход

GUIContent.tooltip

Declaration

public string tooltip;

Описание

tooltip этого элемента.

tooltip, связанный с этим контентом. Прочитайте GUItooltip, чтобы получить tooltip элемента GUI, над которым в данный момент находится пользователь.

using UnityEngine;

public class ExampleScript : MonoBehaviour { void OnGUI() { GUI.Button(new Rect(0, 0, 100, 20), new GUIContent("A Button", "This is the tooltip")); // If the user hovers the mouse over the button, the global tooltip gets set GUI.Label(new Rect(0, 40, 100, 40), GUI.tooltip); } }