Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unknown error in AsyncOperation unity 2019.3.4f1 Addressables 1.1.1.0

Discussion in 'Addressables' started by unity_BowO8jUnsRg3Lw, Mar 22, 2020.

  1. unity_BowO8jUnsRg3Lw

    unity_BowO8jUnsRg3Lw

    Joined:
    Mar 19, 2020
    Posts:
    16
    Code (CSharp):
    1. List<IResourceLocation> myImgs = new List<IResourceLocation>();
    2.     [SerializeField]List<Texture2D> loadedImages = new List<Texture2D>();
    3.     private void Start()
    4.     {
    5.         Addressables.LoadResourceLocationsAsync(imgs.labelString).Completed += imgReady;
    6.     }
    7.     void imgReady(AsyncOperationHandle<IList<IResourceLocation>> op)
    8.     {
    9.         myImgs = new List<IResourceLocation>(op.Result);
    10.         insta();
    11.     }
    12.      void insta()
    13.     {
    14.         Addressables.LoadAssetsAsync<Texture2D>(myImgs, cb);
    15.     }
    16.     void cb(Texture2D s)
    17.     {
    18.         loadedImages.Add(s);
    19.     }
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816
    I'll flag this for the team to take a look! Thanks!
     
    unity_BowO8jUnsRg3Lw likes this.
  3. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816
    I connected with the team, and it was suggested you try to upgrade to Addressables 1.7.5 and try again.

    If that doesn't work, please try again when 1.8.0 releases. If it isn't fixed in 1.8.0, please file a bug report then: https://unity3d.com/unity/qa/bug-reporting
     
  4. unity_BowO8jUnsRg3Lw

    unity_BowO8jUnsRg3Lw

    Joined:
    Mar 19, 2020
    Posts:
    16
    Thanks a lot @TreyK-47 it worked out when I upgraded 1.1.1.0 to 1.7.5