logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Global.Infrastructure.Services

    Classes

    AddressablesAssetLocator

    Unity Addressables-based implementation of IAssetLocator.

    Gated by SerenityAssetLoadingModeProvider:

    • In ResourcesOnly mode every call returns false without touching the Addressables API, so consumers degrade gracefully and the WebGL WaitForCompletion trap is never reached. A future ResourcesAssetLocator can be registered alongside / instead of this one if a Resources-backed lookup is needed; this slice does not introduce one to avoid overbuild.
    • In any Addressables-using mode the behaviour is unchanged on every non-WebGL platform. On WebGL the synchronous WaitForCompletion path throws NotSupportedException to flag the genuinely unsafe call site instead of silently hanging.

    UnityAppReadinessGate

    Unity implementation of IAppReadinessGate that manages application startup synchronization.
    Initializes Addressables, preloads specified assets, prewarms Unity Timeline assets, and ensures stable frame rates before signaling the application is ready for user interaction.
    Uses a timeout mechanism to prevent infinite waiting during startup.

    UnityGlobalService

    Unity MonoBehaviour implementation of IGlobalService providing application-level services.
    Manages event dispatching, application lifecycle (exit/restart), and global service coordination with scene management integration and event subscription handling.

    In this article
    © 2026 Serenity. All Rights Reserved