Skip to reading
GDScript Programming & Godot

ChangeGUIElementProperty()

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

Change Gui Element Property

Change a supported property on a GUI element.

Source table from ChangeGUIElementProperty(), page 179
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Element / Group elementIdChoose an element inside the selected GUI.Blank
Property propertyChoose an element property.Blank
To valueA value of the type required by the selected variable, operation or property.Blank

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

Code example
await ChangeGUIElementProperty({"guiId": "hud", "elementId": "topline", "property": "text"})

In use. Change the status label's text after the signal is powered. Use the correct property key and value type. In a GUI event's script context, elementId this can refer to the calling element; a global event usually has no such caller.

Page 179 of 378Permalink
Go to page