Namespace Serenity.Global.Infrastructure.Services
Classes
AddressablesAssetLocator
Unity Addressables-based implementation of IAssetLocator.
Gated by SerenityAssetLoadingModeProvider:
- In
ResourcesOnlymode every call returnsfalsewithout touching the Addressables API, so consumers degrade gracefully and the WebGLWaitForCompletiontrap is never reached. A futureResourcesAssetLocatorcan 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
WaitForCompletionpath 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.