Как реализовать Tooltips
Добавлено: 01 окт 2011, 10:42
В справке имеется вот такой вот пример:
Как реализавать тоже самое в Universe? В моём варианте тултип показывается всё время, а нужно чтобы прятался, когда мыши над кнопкой нет.
Синтаксис:
Используется javascript
function OnGUI () {
// Make a button using a custom GUIContent parameter to pass in the tooltip.
GUI.Button (Rect (10,10,100,20), GUIContent ("Click me", "This is the tooltip"));
// Display the tooltip from the element that has mouseover or keyboard focus
GUI.Label (Rect (10,40,100,40), GUI.tooltip);
}
// Make a button using a custom GUIContent parameter to pass in the tooltip.
GUI.Button (Rect (10,10,100,20), GUIContent ("Click me", "This is the tooltip"));
// Display the tooltip from the element that has mouseover or keyboard focus
GUI.Label (Rect (10,40,100,40), GUI.tooltip);
}
Как реализавать тоже самое в Universe? В моём варианте тултип показывается всё время, а нужно чтобы прятался, когда мыши над кнопкой нет.