Definition
ShowGUI(string guiName)
Description
This function shows the GUI guiName.
Parameters
guiName
Specifies the GUI name.
Example
function OnTriggerEnter(otherActorName) HideGUI("gui_SampleGUI17_MainMenu") end function OnTriggerStay(otherActorName) end function OnTriggerExit(otherActorName) ShowGUI("gui_SampleGUI17_MainMenu") 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 “gui_SampleGUI17_MainMenu” GUI will be hidden. Whenever the main character or a prefab instance that has dynamic physics exits this trigger, the “gui_SampleGUI17_MainMenu” GUI will be displayed.
ShowGUI