Class BaseSetting<T>
Base class for implementing Tutorial Framework settings.
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Syntax
public class BaseSetting<T> : UserSetting<T>, IUserSetting
Type Parameters
Name | Description |
---|---|
T |
Constructors
BaseSetting(String, String, T, SettingsScope, String)
Constructs the setting.
Declaration
public BaseSetting(string key, string name, T value, SettingsScope scope, string tooltip = null)
Parameters
Type | Name | Description |
---|---|---|
String | key | Key for EditorPrefs (User) or JSON file (Project). |
String | name | Use Tr() in order to have localization support. |
T | value | |
SettingsScope | scope | |
String | tooltip | Use Tr() in order to have localization support. |
Properties
Name
Name of the setting.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Tooltip
Tooltip for the setting.
Declaration
public string Tooltip { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
GetGuiContent()
Returns Name and Tooltip as GUIContent.
Declaration
public GUIContent GetGuiContent()
Returns
Type | Description |
---|---|
GUIContent |