API reference

CredentialStorage Class

Extends ScriptableObject
Central, project-wide vault for credentials used by provider assets.
Avoids duplicated API keys, enables autofilling in editors, and reduces accidental key loss when refactoring provider assets.
See also CredentialStorageEditor for editor UX that auto-registers providers.

Methods

AddProviderIfMissing ( providerId )
Ensures a credential entry exists for the provider.
If missing, creates an empty slot so users can paste the value once. Safe to call repeatedly; the operation is idempotent.
Signature
void AddProviderIfMissing(string providerId)
Parameters
providerId: string  Logical provider id, for example "openai.apiKey".
Returns
void
TryGetEntry ( providerId , entry )
Attempts to resolve a credential by logical id (for example, "openai.apiKey").
Returns true and sets entry when found; otherwise returns false.
Signature
bool TryGetEntry(string providerId, out Entry entry)
Parameters
providerId: string  Logical identifier used by provider editors and runtime code.
entry: out Entry  Resolved secret value, if present and non-empty.
Returns
bool  True if an entry exists with a non-empty value; otherwise false.

Inner Class

Entry Class

Fields

apiKey : string
Signature
string apiKey
providerId : string
Signature
string providerId