Component.guiText Manual     Reference     Scripting  
Scripting > Runtime Classes > Component
Component.guiText

var guiText : GUIText

Description

The GUIText attached to this GameObject (null if there is none attached).

guiText.text = "Hello World";