Typo?

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. :wink:

The bug reporter has a category for documentation typos, so you should use that…forum posts are unlikely to be addressed.

–Eric

+1

It is always better to use the bug reporter than to post about it here. Have you (Flynn) done that? If not then I’ll go ahead and make sure this is logged. If so then all is good!