Definition
HideGUIText(string GUIName, string textName)
Description
This function hides the text textName that belongs to the GUI GUIName.
Parameters
GUIName
Specifies the GUI name.
textName
Specifies the text name that belongs to the GUI GUIName.
Example
function OnTriggerEnter(otherActorName) HideGUIText("gui_SampleGUI17_MainMenuAbout", "text1") end function OnTriggerStay(otherActorName) end function OnTriggerExit(otherActorName) end
Assume that the above script is attached to a trigger named “trigger1”. Whenever the main character or a prefab instance that has dynamic physics is entered into this trigger, the text “text1” that belongs to GUI “gui_SampleGUI17_MainMenuAbout” will be hidden.
HideGUIText