logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    UnitySerenityAssetLoadingModeProvider
    Implements
    IAssetLoadingModeProvider
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Global.Infrastructure.Settings
    Assembly: Serenity.UnityGlobal.Infrastructure.dll
    Syntax
    public sealed class UnitySerenityAssetLoadingModeProvider : IAssetLoadingModeProvider

    Constructors

    UnitySerenityAssetLoadingModeProvider()

    Declaration
    public UnitySerenityAssetLoadingModeProvider()

    Properties

    IsExplicitlyConfigured

    Declaration
    public bool IsExplicitlyConfigured { get; }
    Property Value
    Type Description
    bool

    IsResourcesOnly

    Declaration
    public bool IsResourcesOnly { get; }
    Property Value
    Type Description
    bool

    Mode

    Declaration
    public SerenityAssetLoadingMode Mode { get; }
    Property Value
    Type Description
    SerenityAssetLoadingMode

    UsesAddressables

    Declaration
    public bool UsesAddressables { get; }
    Property Value
    Type Description
    bool

    UsesResources

    Declaration
    public bool UsesResources { get; }
    Property Value
    Type Description
    bool

    Methods

    SetMode(SerenityAssetLoadingMode)

    Declaration
    public void SetMode(SerenityAssetLoadingMode mode)
    Parameters
    Type Name Description
    SerenityAssetLoadingMode mode

    Implements

    IAssetLoadingModeProvider
    In this article
    © 2026 Serenity. All Rights Reserved