Skip to reading
GDScript Programming & Godot

EnableGUI()

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

Enable Gui

Enable an authored interface through the runtime GUI manager.

Source table from EnableGUI(), page 175
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank

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

Code example
await EnableGUI({"guiId": "hud"})

In use. Enable a menu after a sequence that disabled it. Whether it is currently visible is a separate state; use Show GUI as well if it needs to appear.

DisableGUI()#

Disable Gui

Disable an authored interface through the runtime GUI manager.

Source table from EnableGUI(), page 175
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank

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

Code example
await DisableGUI({"guiId": "hud"})

In use. Prevent interaction with an interface while a transition is running. Use Hide GUI if the intention is to remove it from view. Test the final disabled appearance in the running game.

Page 175 of 378Permalink
Go to page