Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

"Completed" callback is called before the upadted asset is downloaded

Discussion in 'Addressables' started by r_carreira, Nov 7, 2019.

  1. r_carreira

    r_carreira

    Joined:
    Sep 3, 2019
    Posts:
    2
    Hello,
    I am testing the version 1.3.3 of Addressables in a Unity 2018.4.9f1 project.
    In my project, I am using this settings. (In green are the parameters that I have changed)

    Settings.png

    When I run my scene, I call Addressables.LoadAssetsAsync<Texture> and display this asset.
    But when I change the bundle on my server and run the scene, the "LoadAssetsAsync" triggers the "Completed" callback immediately (too soon to have downloaded the asset) but returns a wrong texture.
    After a few seconds, if I stop and re-run the scene, the "LoadAssetsAsync" call the "Completed" callback and returns the right texture from the updated bundle.

    I observe that the "LoadAssetsAsync" is downloading the new bundle (in background) but the "Complete" event returns only the asset that is already present in cache.

    Is it the intended behavior for Addressable Assets ?
     
  2. r_carreira

    r_carreira

    Joined:
    Sep 3, 2019
    Posts:
    2
    Hello,
    I have resolved this problem. This was not an issue due to the Addressable package.
    I found that my server take few seconds before really updating the data from the ftp server.