Struct EditorSettings
Object that holds the project-independent editor settings.
struct EditorSettings
;
These settings are generally visible in the Editor > Editor Settings menu.
Accessing the settings is done by using the regular GodotObject API, such as:
settings.set(prop,value) settings.get(prop) list_of_settings = settings.get_property_list()
Methods
| Name | Description |
|---|---|
addPropertyInfo
|
Adds a custom property info to a property. The dictionary must contain:
- name: String (the name of the property)
- type: long (see Variant)
- optionally hint: long (see propertyhint) and hint_string: String
Example:
|
erase
|
Erase a given setting (pass full property path). |
getFavorites
|
Gets the list of favorite files and directories for this project. |
getProjectMetadata
|
|
getProjectSettingsDir
|
Gets the specific project settings path. Projects all have a unique sub-directory inside the settings path where project specific settings are saved. |
getRecentDirs
|
Gets the list of recently visited folders in the file dialog for this project. |
getSetting
|
|
getSettingsDir
|
Gets the global settings path for the engine. Inside this path, you can find some standard paths such as:
settings/tmp - Used for temporary storage of files
settings/templates - Where export templates are located
|
hasSetting
|
|
propertyCanRevert
|
|
propertyGetRevert
|
|
setFavorites
|
Sets the list of favorite files and directories for this project. |
setInitialValue
|
|
setProjectMetadata
|
|
setRecentDirs
|
Sets the list of recently visited folders in the file dialog for this project. |
setSetting
|
Enums
| Name | Description |
|---|---|
Constants
|