Constructor EditorPersistentValue
EditorPersistentValue(T, string, Action)
Initializes a new persisted value.
Declaration
public EditorPersistentValue(T defaultValue, string persistenceKey, Action onValueChanged = null)
Parameters
| Type | Name | Description |
|---|---|---|
| T | defaultValue | Default value used when no data is stored. |
| string | persistenceKey | EditorPrefs key used for persistence. |
| Action | onValueChanged | Callback invoked when the value changes. |