HideGUIButton

Definition

HideGUIButton(string GUIName, string buttonName)

Description

This function hides the button buttonName that belongs to the GUI GUIName.

Parameters

GUIName
Specifies the GUI name.

buttonName
Specifies the button name that belongs to the GUI GUIName.

Example

function OnTriggerEnter(otherActorName)
    HideGUIButton("gui_SampleGUI17_MainMenu""PlayGame")
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 button “PlayGame” that belongs to GUI “gui_SampleGUI17_MainMenu” will be hidden.
adminHideGUIButton