Skip to reading
GDScript Programming & Godot

SetSaveSlotImage()

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

Set Save Slot Image

Set the image override used for save-slot presentation through the extension.

Source table from SetSaveSlotImage(), page 220
Option key / fieldMeaning and inputDefault
Save Slot Image 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 SetSaveSlotImage({"assetId": "your_asset"})

In use. Choose an authored chapter illustration instead of a live screenshot when appropriate. The asset must be an imported image. It does not create a new save or choose which slot gets saved.

SetGameLanguage()#

Set Game Language

Set the game text language, optionally persisting the selection.

Source table from SetSaveSlotImage(), page 220
Option key / fieldMeaning and inputDefault
Language Code languageLanguage code used by the project, such as en.Blank
Save Player Preference persistRemember this language preference beyond the immediate runtime change.true

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

Code example
await SetGameLanguage({"language": "", "persist": true})

In use. Choose a language code present in the project's translations. Keep Persist on for a player preference that should survive later sessions. This does not translate text that was never entered into the translation workflow.

Page 220 of 378Permalink
Go to page