Class ProjectSetting<T>
Wrapper for defining IET Project Settings conveniently.
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Syntax
public class ProjectSetting<T> : BaseSetting<T>, IUserSetting
Type Parameters
Name | Description |
---|---|
T |
Remarks
If you wish to commit the changes to JSON immediately, use SetValue(value, saveProjectSettingsImmediately:true) or FrameworkSettings.Instance.Save(), otherwise changes are committed only on application quit or assembly reload.
Constructors
ProjectSetting(String, String, T, String)
Constructs the setting.
Declaration
public ProjectSetting(string key, string name, T value, string tooltip = null)
Parameters
Type | Name | Description |
---|---|---|
String | key | Key for EditorPrefs. |
String | name | Use Tr() in order to have localization support. |
T | value | |
String | tooltip | Use Tr() in order to have localization support. |