Skip to reading
GDScript Programming & Godot

ChangeProjectProperty()

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 Project Property

Assign a supported project property through a property path.

Source table from ChangeProjectProperty(), page 222
Option key / fieldMeaning and inputDefault
Property propertyChoose a project property path.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 ChangeProjectProperty({"property": "meta.title", "value": "Workshop"})

In use. Change a runtime project option offered by the picker. Match the value type and test whether the relevant manager reads it immediately. This is not an instruction to rewrite the saved editor project file.

ChangeGameSetting()#

Change Game Setting

Assign a supported runtime game setting.

Source table from ChangeProjectProperty(), page 222
Option key / fieldMeaning and inputDefault
Setting settingChoose a runtime game setting.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 ChangeGameSetting({"setting": "", "value": true})

In use. Change a control or presentation setting used by a custom options screen. Some systems apply settings when a scene or manager is rebuilt, so confirm the live result instead of assuming every property is reactive.

Page 222 of 378Permalink
Go to page