Class UserSettings<T>
Wrapper utility around UnityEditor.EditorUserSettings to allow saving arbitrary data as User settings.
Namespace: Unity.Serialization.Editor
Syntax
public static class UserSettings<T>
where T : class, new()
Type Parameters
| Name | Description |
|---|---|
| T | The type of the setting |
Methods
Clear(String)
Clears the data stored at the provided key.
Declaration
public static void Clear(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| String | key | The key to the data. |
GetOrCreate(String)
Returns an instance of
Declaration
public static T GetOrCreate(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| String | key | The key to the data. |
Returns
| Type | Description |
|---|---|
| T | The |