Search Unity

Feedback Initial download

Discussion in 'Addressables' started by m-mine, Aug 27, 2019.

  1. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
    Is addressable has initial download feature
     
  2. HugoClip

    HugoClip

    Joined:
    Feb 28, 2018
    Posts:
    52
    What do you mean by initial download? You can tell the addressables to download any asset through:


    Code (CSharp):
    1. /// <summary>
    2. /// Downloads dependencies of assets marked with the specified label or address.
    3. /// </summary>
    4. /// <param name="key">The key of the asset(s) to load dependencies for.</param>
    5. /// <returns>The AsyncOperationHandle for the dependency load.</returns>
    6. public static AsyncOperationHandle DownloadDependenciesAsync(object key)
    7. {
    8.     return m_Addressables.DownloadDependenciesAsync(key);
    9. }