Search Unity

  1. New Unity Live Help updates. Check them out here!

    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:
    10
    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:
    210
    I'll flag this for the team to take a look! Thanks!
     
    unity_BowO8jUnsRg3Lw likes this.
unityunity