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:

    Example:

    1. var property_info = {
    2. "type": TYPE_INT,
    3. "hint": PROPERTY_HINT_ENUM,
    4. }

    • void erase ( property )

    Erase a given setting (pass full property path).


    Get the list of favorite files and directories for this project.


    • get_project_metadata ( String section, key, Variant default=null ) const

    • 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_initial_value ( String name, value, bool update_current )

    • void set_project_metadata ( section, String key, data )


    • void set_setting ( name, Variant value )