Class UnitySerenityAssetLoadingModeProvider
Instance-based implementation of IAssetLoadingModeProvider that delegates
to the static SerenityAssetLoadingModeProvider. Lets consumers depend on
the Business-layer interface (DI, tests) while preserving the static accessor used by
existing call sites in UnityAssetUtils, UnityAddressableUtils,
UnitySerenityInstaller, etc.
The session-wide mode is single-valued, so both this adapter and any direct static
reader observe the same value. Mutations through SetMode(SerenityAssetLoadingMode) on this
adapter are visible to all readers, static or instance-based.
Inheritance
UnitySerenityAssetLoadingModeProvider
Assembly: Serenity.UnityGlobal.Infrastructure.dll
Syntax
public sealed class UnitySerenityAssetLoadingModeProvider : IAssetLoadingModeProvider
Constructors
UnitySerenityAssetLoadingModeProvider()
Declaration
public UnitySerenityAssetLoadingModeProvider()
Properties
Declaration
public bool IsExplicitlyConfigured { get; }
Property Value
IsResourcesOnly
Declaration
public bool IsResourcesOnly { get; }
Property Value
Mode
Declaration
public SerenityAssetLoadingMode Mode { get; }
Property Value
UsesAddressables
Declaration
public bool UsesAddressables { get; }
Property Value
UsesResources
Declaration
public bool UsesResources { get; }
Property Value
Methods
SetMode(SerenityAssetLoadingMode)
Declaration
public void SetMode(SerenityAssetLoadingMode mode)
Parameters
Implements