Click or drag to resize

SettingsManager Class

Allows to save/load device-specific app-wide settings (with PlayerPrefs as back-end). Supports organization, more types, and is easier-to-use.
Inheritance Hierarchy
SystemObject
  KitSettingsManager

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static class SettingsManager
Request Example View Source

The SettingsManager type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClear
Delete all settings.
Public methodStatic memberDelete
Delete a setting.
Public methodStatic memberExists
Returns whether a setting exists.
Public methodStatic memberGetT
Return the value of a setting, or a default value if doesn't exist.
Public methodStatic memberSave
Save settings.
Public methodStatic memberSet
Set the value of a setting.
Top
Examples
int aaLevel = SettingsManager.Get("Graphics", "Anti-Aliasing", "Level", 4);
SettingsManager.Set("Graphics", "Anti-Aliasing", "Enabled", true);
SettingsManager.Save();
See Also

Reference