docs.unity3d.com
    目次を表示する/隠す

    Method LoadResourceLocationsAsync

    LoadResourceLocationsAsync(IList<Object>, Addressables.MergeMode, Type)

    Loads the resource locations specified by a list of keys.

    Declaration
    [Obsolete]
    public static AsyncOperationHandle<IList<IResourceLocation>> LoadResourceLocationsAsync(IList<object> keys, Addressables.MergeMode mode, Type type = null)
    Parameters
    Type Name Description
    IList<Object> keys

    The set of keys to use.

    Addressables.MergeMode mode

    The mode for merging the results of the found locations.

    Type type

    A type restriction for the lookup. Only locations of the provided type (or derived type) will be returned.

    Returns
    Type Description
    AsyncOperationHandle<IList<IResourceLocation>>

    The operation handle for the request.

    Remarks

    The operation always completes successfully and the operation handle's Result object always contains a valid IList instance. If no assets matched the specified keys, the list in Result is empty.

    See Loading assets by location for more information.

    See Operations for information on handling the asynchronous operations used to load Addressable assets.

    LoadResourceLocationsAsync(IEnumerable, Addressables.MergeMode, Type)

    Loads the resource locations specified by a set of keys.

    Declaration
    public static AsyncOperationHandle<IList<IResourceLocation>> LoadResourceLocationsAsync(IEnumerable keys, Addressables.MergeMode mode, Type type = null)
    Parameters
    Type Name Description
    IEnumerable keys

    The set of keys to use.

    Addressables.MergeMode mode

    The mode for merging the results of the found locations.

    Type type

    A type restriction for the lookup. Only locations of the provided type (or derived type) will be returned.

    Returns
    Type Description
    AsyncOperationHandle<IList<IResourceLocation>>

    The operation handle for the request.

    Remarks

    The operation always completes successfully and the operation handle's Result object always contains a valid IList instance. If no assets matched the specified keys, the list in Result is empty.

    See Loading assets by location for more information.

    See Operations for information on handling the asynchronous operations used to load Addressable assets.

    LoadResourceLocationsAsync(Object, Type)

    Loads the resource locations specified by a key.

    Declaration
    public static AsyncOperationHandle<IList<IResourceLocation>> LoadResourceLocationsAsync(object key, Type type = null)
    Parameters
    Type Name Description
    Object key

    The key for the locations.

    Type type

    A type restriction for the lookup. Only locations of the provided type (or derived type) will be returned.

    Returns
    Type Description
    AsyncOperationHandle<IList<IResourceLocation>>

    The operation handle for the request.

    Remarks

    The operation always completes successfully and the operation handle's Result object always contains a valid IList instance. If no assets matched the specified key, the list in Result is empty.

    See Loading assets by location for more information.

    See Operations for information on handling the asynchronous operations used to load Addressable assets.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)