Search Unity

How to check if Addressables.GetDownloadSizeAsync is failed

Discussion in 'Addressables' started by zyc_dc, Jan 22, 2020.

  1. zyc_dc

    zyc_dc

    Joined:
    May 11, 2018
    Posts:
    42
    Code (CSharp):
    1. var sizeOp = Addressables.GetDownloadSizeAsync("default");
    2. yield return sizeOp;
    Test on 1.3.8 and 1.5.1. When the game is off-line, I can see an exception on the console. But sizeOp.Status is Succeeded and sizeOp.OperationException is null. I find no way to check if the operation is succeeded or not.

    This makes Addressable totally unusable when it comes to on-line games
     
    Last edited: Jan 22, 2020
    phobos2077 likes this.
  2. zyc_dc

    zyc_dc

    Joined:
    May 11, 2018
    Posts:
    42
  3. OneManArmy3D

    OneManArmy3D

    Joined:
    Jun 2, 2011
    Posts:
    191
    +1
     
    naby7u likes this.
  4. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    763
    Definitely is a bug. If you could file a bug with Unity and post the case number here we'll be sure to get to it.
     
  5. OneManArmy3D

    OneManArmy3D

    Joined:
    Jun 2, 2011
    Posts:
    191
    any progress on this?
     
  6. OneManArmy3D

    OneManArmy3D

    Joined:
    Jun 2, 2011
    Posts:
    191
    any progress on this?
     
  7. ProtoTerminator

    ProtoTerminator

    Joined:
    Nov 19, 2013
    Posts:
    586
    Did you file a bug report?
     
  8. phobos2077

    phobos2077

    Joined:
    Feb 10, 2018
    Posts:
    350
    Typical UT. How hard it is to take a look at the code in question, maybe the bug is easy to spot w/o asking customers to waste their time creating a reproduction project to satisfy bureaucratic needs of your QA department?

    Even if it is. Customer reported a bug. Have some faith and ask QA to reproduce it for you.
     
    Last edited: Jun 24, 2020
    OneManArmy3D likes this.