logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IPrefetchPolicyRegistry

    Definition interface for a registry of prefetch policy profiles.
    Lets Application-layer code look up a profile by ID without depending on the concrete Unity ScriptableObject registry type.

    Namespace: Serenity.AssetPrefetcher.Application.Interfaces
    Assembly: Serenity.AssetPrefetcher.Application.dll
    Syntax
    public interface IPrefetchPolicyRegistry

    Methods

    Get(string)

    Retrieves a prefetch profile by its unique identifier.

    Declaration
    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
    PrefetchProfile GetDefault()
    Returns
    Type Description
    PrefetchProfile

    The default PrefetchProfile value object, or null if not found

    In this article
    © 2026 Serenity. All Rights Reserved