Class PrefetchPolicyProfile
ScriptableObject configuration for prefetch policy profiles.
Allows designers to configure asset prefetching behavior through Unity Inspector.
Namespace: Serenity.AssetPrefetcher.Infrastructure.Settings
Assembly: Serenity.UnityAssetPrefetcher.Infrastructure.dll
Syntax
public class PrefetchPolicyProfile : ScriptableObject
Constructors
PrefetchPolicyProfile()
Declaration
public PrefetchPolicyProfile()
Fields
Eviction
Declaration
public PrefetchEvictionPolicy Eviction
Field Value
| Type | Description |
|---|---|
| PrefetchEvictionPolicy | Cache eviction policy for determining which assets to remove when cache is full. |
Id
Declaration
public string Id
Field Value
| Type | Description |
|---|---|
| string | Unique identifier for this profile. Uses asset name if not specified. |
MaxItems
Declaration
public int MaxItems
Field Value
| Type | Description |
|---|---|
| int |
MaxSizeMB
Declaration
public int MaxSizeMB
Field Value
| Type | Description |
|---|---|
| int | Maximum memory usage in megabytes for the asset cache. |
Strategy
Declaration
public PrefetchStrategy Strategy
Field Value
| Type | Description |
|---|---|
| PrefetchStrategy | Prefetch strategy determining how assets are loaded and managed. |
Methods
ToValueObject()
Converts this ScriptableObject configuration to a domain value object.
Declaration
public PrefetchProfile ToValueObject()
Returns
| Type | Description |
|---|---|
| PrefetchProfile | PrefetchProfile value object with the configured settings |