Class UserSetting<T>
Wrapper for defining IET Preferences (User Settings) conveniently.
Implements
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Assembly: Unity.Tutorials.Core.Editor.dll
Syntax
public class UserSetting<T> : BaseSetting<T>, IUserSetting
Type Parameters
Name | Description |
---|---|
T | The Type of the value this Setting contains |
Constructors
UserSetting(string, string, T, string)
Constructs the setting.
Declaration
public UserSetting(string key, string name, T value, string tooltip = null)
Parameters
Type | Name | Description |
---|---|---|
string | key | Key for the JSON file. |
string | name | Use Tr() in order to have localization support. |
T | value | The value to initialize this new UserSetting to |
string | tooltip | Use Tr() in order to have localization support. |