TraGUS
Godot plugin for user settings
Loading...
Searching...
No Matches

◆ Reset()

static bool Reset ( UserSetting  setting)
inlinestatic

Tries to reset the setting to the value specified in tragus_default_settings.ini, if present.
This DOES NOT apply the changes to the user's config file. For that, you must still call Save afterwards.

Parameters
settingThe setting to reset.
Returns
Whether the setting could be reset. It can fail:
  • If the tragus_default_settings.ini did not contain an entry for this setting, and the setting can't handle default.
  • If the tragus_default_settings.ini entry values is rejected by the setting.