| Namespace: | Sirenix.OdinInspector.Editor |
| Assembly: | Sirenix.OdinInspector.Editor |
[InlineProperty]
[HideReferenceObjectPicker]
public abstract class EditorPref<T>
public EditorPref(string key, T defaultValue)
| System.String | key | |
| T | defaultValue |
public readonly string Key
[ShowInInspector]
[HideLabel]
public T Value { get; set; }
protected virtual bool Equals(T a, T b)
| T | a | |
| T | b |
| System.Boolean |
protected abstract T GetValue(string key, T defaultValue)
| System.String | key | |
| T | defaultValue |
| T |
protected abstract void SetValue(string key, T value)
| System.String | key | |
| T | value |
public static implicit operator T(EditorPref<T> editorPref)
| EditorPref<T> | editorPref |
| T |