Skip to reading
GDScript Programming & Godot

GetProjectProperty()

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
On this page
Code example
GetProjectProperty(property_path: String, default_value: Variant = null) -> Variant

Read a supported runtime project-data path.

Returns: Value or fallback.

Code example
GetProjectProperty("meta.title", "Untitled")

SetProjectProperty()#

Code example
SetProjectProperty(property_path: String, value: Variant) -> bool

Write a supported runtime project-data path.

Returns: Boolean.

Code example
SetProjectProperty("meta.title", "Workshop")

This is not a request to save the editor document. Live application depends on the target property.

GetSetting()#

Code example
GetSetting(setting_path: String, default_value: Variant = null) -> Variant

Read a setting through the current Settings proxy.

Returns: Value or fallback.

Code example
GetSetting("musicVolume", 0.7)

SetSetting()#

Code example
SetSetting(setting_path: String, value: Variant) -> bool

Write a setting through the current Settings proxy.

Returns: Boolean.

Code example
SetSetting("musicVolume", 0.5)

Use a dedicated action when immediate feature reconfiguration matters.

Page 69 of 378Permalink
Go to page