Search Unity

Feedback Can I get the address of the asset in loaded callback?

Discussion in 'Addressables' started by doneykoo, Apr 22, 2020.

  1. doneykoo

    doneykoo

    Joined:
    Oct 28, 2016
    Posts:
    9
    I'm doing some preloading logic by code:
    Code (csharp):
    1. var handle = Addressables.LoadAssetsAsync<UnityEngine.Object>(label, single_onload_callback)
    2. await handle.Task;
    Can I get the address of the loaded asset?
    I want to get the address of each asset loaded, in the single_onload_callback or in the handle results.
    (I want to store them in a dictionary, by key of address, and then directly get the loaded prefabs in later gameplay logics.)