Class UserSetting<T>
A generic implementation of IUserSetting to be used with a Settings instance. This default
implementation assumes the Settings instance contains two ISettings
Implements
Inherited Members
Namespace: UnityEditor .SettingsManagement
Assembly: solution.dll
Syntax
public class UserSetting<T> : IUserSetting
Type Parameters
Name | Description |
---|---|
T |
Constructors
Name | Description |
---|---|
User |
Constructor for UserSetting{T} type. |
User |
Constructor for UserSetting{T} type. |
Properties
Name | Description |
---|---|
default |
|
key | |
scope | The scope affects which ISettings |
settings | |
settings |
The name of the ISettings |
type | |
value |
Methods
Name | Description |
---|---|
Apply |
When the inspected type is a reference value, it is possible to change properties without affecting the backing setting. ApplyModifiedProperties provides a method to force serialize these changes. |
Delete(bool) | Delete the saved setting. Does not clear the current value. |
Get |
Get a copy of the default value. |
Get |
Get the currently stored value. |
Reset(bool) | Set the current value back to the default. |
Set |
Set the value for this setting. |
Set |
Set the value for this setting. |
To |
Get a summary of this setting. |
Operators
Name | Description |
---|---|
implicit operator T(User |
Implicit cast to backing type. |