EditorSettings
Category: Core
Object that holds the project-independent editor settings.
- settings_changed ( )
Object that holds the project-independent editor settings. These settings are generally visible in the Editor Settings menu.
Accessing the settings is done by using the regular API, such as:
- void add_property_info ( Dictionary info )
Example:
var property_info = {
"type": TYPE_INT,
"hint": PROPERTY_HINT_ENUM,
}
- void erase ( property )
Erase a given setting (pass full property path).
- PoolStringArray get_favorites ( ) const
Get the list of favorite files and directories for this project.
- get_project_settings_dir ( ) const
Get the specific project settings path. Projects all have a unique sub-directory inside the settings path where project specific settings are saved.
- Variant get_setting ( name ) const
- String get_settings_dir ( ) const
Get 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
- has_setting ( String name ) const
- property_can_revert ( String name )
- property_get_revert ( String name )
- void set_favorites ( dirs )
Set the list of favorite files and directories for this project.
- void set_project_metadata ( section, String key, data )
- void set_recent_dirs ( PoolStringArray dirs )
- void set_setting ( name, Variant value )