[code=javascript]var h=-10;
function OnGUI () {
// This line feeds "This is the tooltip" into GUI.tooltip
h+= 10 * Time.deltaTime;
if(h>= 500)h =500;
GUI.Button (Rect (h+10,10,100,20), GUIContent ("Click me", "This is the tooltip"));
// This line reads and displays the contents of GUI.tooltip
GUI.Label (Rect (10,40,100,20), GUI.tooltip);
}
[/code]