Class AiPromptEditorPrefsStore
IAiPromptPreferencesStore backed by UnityEditor.EditorPrefs — personal, per-user state
that persists across editor sessions and is shared across projects, matching the Hub's own
SerenityHubEditorPrefsStore pattern.
Implements
Inherited Members
Namespace: Serenity.Editor.AiPromptBuilder
Assembly: Serenity.AiPromptBuilder.Editor.dll
Syntax
public sealed class AiPromptEditorPrefsStore : IAiPromptPreferencesStore
Constructors
AiPromptEditorPrefsStore()
Declaration
public AiPromptEditorPrefsStore()
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 |