Class PrefetchPolicyRegistry
ScriptableObject registry for managing multiple prefetch policy profiles.
Allows centralized configuration and lookup of prefetch profiles by ID.
Namespace: Serenity.AssetPrefetcher.Infrastructure.Settings
Assembly: Serenity.UnityAssetPrefetcher.Infrastructure.dll
Syntax
public class PrefetchPolicyRegistry : ScriptableObject, IPrefetchPolicyRegistry, IFoundationSettings
Constructors
PrefetchPolicyRegistry()
Declaration
public PrefetchPolicyRegistry()
Fields
Guid
Declaration
public string Guid
Field Value
| Type | Description |
|---|---|
| string | GUID for this registry asset. |
Id
Declaration
public string Id
Field Value
| Type | Description |
|---|---|
| string | Unique identifier for this registry asset. |
Profiles
Declaration
public PrefetchPolicyProfile[] Profiles
Field Value
| Type | Description |
|---|---|
| PrefetchPolicyProfile[] | Array of available prefetch policy profiles. |
Methods
Get(string)
Retrieves a prefetch profile by its unique identifier.
Declaration
public PrefetchProfile Get(string profileId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | profileId | The profile ID to look up; matches the profile's resolved identity (asset name when the serialized Id is empty) |
Returns
| Type | Description |
|---|---|
| PrefetchProfile | The matching PrefetchProfile value object, or null if not found |
GetDefault()
Retrieves the default profile (profile whose resolved ID is "default").
Declaration
public PrefetchProfile GetDefault()
Returns
| Type | Description |
|---|---|
| PrefetchProfile | The default PrefetchProfile value object, or null if not found |