Skip to reading
GDScript Programming & Godot

ShowGUIElement()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Show Gui Element

Show one element inside an authored GUI.

Source table from ShowGUIElement(), page 176
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Element / Group elementIdChoose an element inside the selected GUI.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await ShowGUIElement({"guiId": "hud", "elementId": "topline"})

In use. Reveal an archive tab button after the player finds the key. Select both the owning GUI and that element. The parent GUI and any parent panel must also be visible.

HideGUIElement()#

Hide Gui Element

Hide one element inside an authored GUI.

Source table from ShowGUIElement(), page 176
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Element / Group elementIdChoose an element inside the selected GUI.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await HideGUIElement({"guiId": "hud", "elementId": "topline"})

In use. Hide a temporary objective label after completion. A hidden child cannot be made visible merely by showing its parent if its own visible flag remains off.

Page 176 of 378Permalink
Go to page