docs.unity3d.com
    Show / Hide Table of Contents

    Method LoadAssets

    LoadAssets<TObject>(IList<IResourceLocation>, Action<TObject>)

    Load multiple assets

    Declaration
    [Obsolete]
    public static AsyncOperationHandle<IList<TObject>> LoadAssets<TObject>(IList<IResourceLocation> locations, Action<TObject> callback)
    Parameters
    Type Name Description
    IList<IResourceLocation> locations

    The locations of the assets.

    Action<TObject> callback

    Callback Action that is called per load operation.

    Returns
    Type Description
    AsyncOperationHandle<IList<TObject>>

    The operation handle for the request.

    Type Parameters
    Name Description
    TObject

    The type of the assets.

    LoadAssets<TObject>(IList<Object>, Action<TObject>, Addressables.MergeMode)

    Load multiple assets

    Declaration
    [Obsolete]
    public static AsyncOperationHandle<IList<TObject>> LoadAssets<TObject>(IList<object> keys, Action<TObject> callback, Addressables.MergeMode mode)
    Parameters
    Type Name Description
    IList<Object> keys

    List of keys for the locations.

    Action<TObject> callback

    Callback Action that is called per load operation.

    Addressables.MergeMode mode

    Method for merging the results of key matches. See Addressables.MergeMode for specifics

    Returns
    Type Description
    AsyncOperationHandle<IList<TObject>>

    The operation handle for the request.

    Type Parameters
    Name Description
    TObject

    The type of the assets.

    LoadAssets<TObject>(Object, Action<TObject>)

    Load mutliple assets See the Loading Addressable Assets documentation for more details.

    Declaration
    [Obsolete]
    public static AsyncOperationHandle<IList<TObject>> LoadAssets<TObject>(object key, Action<TObject> callback)
    Parameters
    Type Name Description
    Object key

    Key for the locations.

    Action<TObject> callback

    Callback Action that is called per load operation.

    Returns
    Type Description
    AsyncOperationHandle<IList<TObject>>

    The operation handle for the request.

    Type Parameters
    Name Description
    TObject

    The type of the assets.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023