EditorSettings

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 GodotObject API, such as:

More...

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

addPropertyInfo
void addPropertyInfo(Dictionary info)

Add a custom property info to a property. The dictionary must contain: name:String(the name of the property) and type:long(see TYPE_* in @GlobalScope), and optionally hint:long(see PROPERTY_HINT_* in @GlobalScope), hint_string:String.

erase
void erase(StringArg0 property)

Erase a given setting (pass full property path).

getFavorites
PoolStringArray getFavorites()

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

getProjectMetadata
Variant getProjectMetadata(StringArg0 section, StringArg1 key, VariantArg2 _default)
getProjectSettingsDir
String getProjectSettingsDir()

Get the specific project settings path. Projects all have a unique sub-directory inside the settings path where project specific settings are saved.

getRecentDirs
PoolStringArray getRecentDirs()

Get the list of recently visited folders in the file dialog for this project.

getSetting
Variant getSetting(StringArg0 name)
getSettingsDir
String getSettingsDir()

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

hasSetting
bool hasSetting(StringArg0 name)
opAssign
EditorSettings opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(EditorSettings other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
propertyCanRevert
bool propertyCanRevert(StringArg0 name)
propertyGetRevert
Variant propertyGetRevert(StringArg0 name)
setFavorites
void setFavorites(PoolStringArray dirs)

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

setInitialValue
void setInitialValue(StringArg0 name, VariantArg1 value, bool update_current)
setProjectMetadata
void setProjectMetadata(StringArg0 section, StringArg1 key, VariantArg2 data)
setRecentDirs
void setRecentDirs(PoolStringArray dirs)

Set the list of recently visited folders in the file dialog for this project.

setSetting
void setSetting(StringArg0 name, VariantArg1 value)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
EditorSettings _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Detailed Description

settings.set(prop,value) settings.get(prop) list_of_settings = settings.get_property_list()

Meta