logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class PrefetchPolicyRegistry

    ScriptableObject registry for managing multiple prefetch policy profiles.
    Allows centralized configuration and lookup of prefetch profiles by ID.

    Inheritance
    object
    PrefetchPolicyRegistry
    Namespace: Serenity.AssetPrefetcher.Infrastructure.Settings
    Assembly: Serenity.UnityAssetPrefetcher.Infrastructure.dll
    Syntax
    public class PrefetchPolicyRegistry : ScriptableObject

    Constructors

    PrefetchPolicyRegistry()

    Declaration
    public PrefetchPolicyRegistry()

    Fields

    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

    Returns
    Type Description
    PrefetchProfile

    The matching PrefetchProfile value object, or null if not found

    GetDefault()

    Retrieves the default profile (profile with ID "default").

    Declaration
    public PrefetchProfile GetDefault()
    Returns
    Type Description
    PrefetchProfile

    The default PrefetchProfile value object, or null if not found

    In this article
    © 2026 Serenity. All Rights Reserved