Version 3.1.1.0

EditorPref<T> class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[InlineProperty]
[HideReferenceObjectPicker]
public abstract class EditorPref<T>
Inheritance
  • System.Object
  • EditorPref<T>

Type Parameters

T

Constructors

EditorPref(String, T)
public EditorPref(string key, T defaultValue)
Parameters
System.String key

T defaultValue

Fields

Key
public readonly string Key

Properties

Value
[ShowInInspector]
[HideLabel]
public T Value { get; set; }

Methods

Equals(T, T)
protected virtual bool Equals(T a, T b)
Parameters
T a

T b

Returns
System.Boolean

GetValue(String, T)
protected abstract T GetValue(string key, T defaultValue)
Parameters
System.String key

T defaultValue

Returns
T

SetValue(String, T)
protected abstract void SetValue(string key, T value)
Parameters
System.String key

T value

Operators

Implicit(EditorPref<T> to T)
public static implicit operator T(EditorPref<T> editorPref)
Parameters
EditorPref<T> editorPref

Returns
T