Namespace: | Sirenix.OdinInspector.Editor.Internal |
Assembly: | Sirenix.OdinInspector.Editor |
[InlineProperty]
public abstract class ProjectSetting<T> : IProjectSetting
public ProjectSetting()
public ProjectSetting(string key, T defaultValue, Object serializedContainer)
System.String | key | |
T | defaultValue | |
UnityEngine.Object | serializedContainer |
public bool IsDefault { get; }
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 abstract T Draw(Rect rect, T value, GUIContent label)
UnityEngine.Rect | rect | |
T | value | |
UnityEngine.GUIContent | label |
T |
public void Draw(Rect rect, string label, string tooltip, bool drawLocalOverride, bool allowBold = true)
UnityEngine.Rect | rect | |
System.String | label | |
System.String | tooltip | |
System.Boolean | drawLocalOverride | |
System.Boolean | allowBold |
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 |