Class SerenityHubEditorPrefsStore
ISerenityHubKeyValueStore backed by UnityEditor.EditorPrefs — personal, per-user state that
persists across sessions. Used for recents (ADR-8) and favorites (ADR-8), consistent with the existing
SerenityHubWindow.PREFS_KEY_DONT_AUTO_OPEN mechanism (a plain Serenity.Hub.* key, no
per-project scoping — UnityEditor.EditorPrefs is per-user by design, matching the rest of the Hub).
Implements
Inherited Members
Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Services
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubEditorPrefsStore : ISerenityHubKeyValueStore
Constructors
SerenityHubEditorPrefsStore()
Declaration
public SerenityHubEditorPrefsStore()
Methods
SetValue(string, string)
Writes value to key, replacing any existing value.
Declaration
public void SetValue(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | value |
TryGetValue(string, out string)
Reads the value stored at key, if any.
Declaration
public bool TryGetValue(string key, out string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | value |
Returns
| Type | Description |
|---|---|
| bool |