Class FileSettingsRepository
Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.To browse the .NET Framework source code for this type, see the Reference Source.
Implements
Inherited Members
Namespace: UnityEditor.SettingsManagement
Assembly: solution.dll
Syntax
[Serializable]
public class FileSettingsRepository : ISettingsRepository
Constructors
| Name | Description |
|---|---|
| FileSettingsRepository(string) | Constructor sets the serialized data path. |
Fields
| Name | Description |
|---|---|
| k_PackageSettingsDirectory | |
| k_UserProjectSettingsDirectory |
Properties
| Name | Description |
|---|---|
| name | The name of this settings file. |
| path | |
| scope |
Methods
| Name | Description |
|---|---|
| ContainsKey<T>(string) | Does the repository contain a setting with key and type. |
| Get<T>(string, T) | Get a value with key of type T, or return the fallback value if no matching key is found. |
| Remove<T>(string) | Remove a key value pair from the settings repository. |
| Save() | Save all settings to their serialized state. |
| Set<T>(string, T) | Set a value for key of type T. |
| TryLoadSavedJson(out string) |