It’s not really that relevant, but I think somebody had a typo on the GUI Basics page…
/* Using GUIContent to display a tooltip */
function OnGUI () {
// This line feeds "This is the tooltip" into GUI.tooltip
GUI.Button (Rect (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);
}
Somebody forgot to capitalize the GUI part of GUI.tooltip. I kept stumbling over it, until I looked it up elsewhere. (Though the proper spelling was staring at me just above…)
Typo location:
Proper spelling location:
http://unity3d.com/support/documentation/ScriptReference/GUIContent.GUIContent.html
As I said, it’s not really that relevant, but you might want to fix it, so that other newbies, don’t get caught up in it themselves.