Skip to reading
GDScript Programming & Godot

ListBoxDeleteItem()

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

List Box: Delete Item

Delete a list-box item by its item ID.

Source table from ListBoxDeleteItem(), page 181
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
List Box elementIdChoose an element inside the selected GUI.Blank
Item ID itemIdText.Blank

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

Code example
await ListBoxDeleteItem({"guiId": "hud", "elementId": "topline", "itemId": "key"})

In use. Remove a destination that is no longer available. The item's ID is not its visible label or a row number. Consider disabling it instead when the player should still see that it exists.

Page 181 of 378Permalink
Go to page