Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
[InlineProperty]
public abstract class ProjectSetting<T> : IProjectSetting
public ProjectSetting()
public ProjectSetting(string key, T defaultValue)
System.String | key | |
T | defaultValue |
public string Key { get; }
[ShowInInspector]
[HorizontalGroup(20F, 0, 0, 0F)]
[HideLabel]
public bool LocalOverride { get; set; }
[HorizontalGroup(0F, 0, 0, 0F)]
[HideLabel]
[SuppressInvalidAttributeError]
[InlineProperty]
[ShowInInspector]
public T Value { get; set; }
public void DeleteLocalValue()
protected virtual bool Equals(T a, T b)
T | a | |
T | b |
System.Boolean |
protected abstract T GetLocalValue(string key, T defaultValue)
System.String | key | |
T | defaultValue |
T |
public void Reset()
protected abstract void SetLocalValue(string key, T value)
System.String | key | |
T | value |
public static implicit operator T(ProjectSetting<T> projectSetting)
ProjectSetting<T> | projectSetting |
T |