Skip to reading
GDScript Programming & Godot

CarouselRemoveImage()

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

Carousel: Remove Image

Remove a selected image asset from a carousel's authored/runtime list.

Source table from CarouselRemoveImage(), page 184
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Image Carousel elementIdChoose an element inside the selected GUI.Blank
Image Asset assetIdChoose an imported image.Blank

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

Code example
await CarouselRemoveImage({"guiId": "hud", "elementId": "topline", "assetId": "your_asset"})

In use. Remove a temporary clue image when the inspection ends. Check what happens if it was the current slide, and test the first/last-image behavior.

CarouselClearImages()#

Carousel: Clear Images

Clear a carousel's image list.

Source table from CarouselRemoveImage(), page 184
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Image Carousel 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 CarouselClearImages({"guiId": "hud", "elementId": "topline"})

In use. Reset a manual inspection gallery before filling it with another object's images. Inventory-driven carousels can obtain their contents from inventory instead; update the appropriate data source.

Page 184 of 378Permalink
Go to page