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

Get data from LoadAssets<IResourceLocation>

Discussion in 'Addressables' started by rmsuhail, Jan 14, 2019.

  1. rmsuhail

    rmsuhail

    Joined:
    Jan 5, 2014
    Posts:
    6
    how to get the data loaded from the Addressables.LoadAssets<IResourceLoaction>(),all it returns is the location but i want to get the actual data and store it in a list or array, I tried op.Result.Data but it returns null always and also it gives the InternalId and the ProviderId, how can i use this info to get the actual data
     
  2. jayatubi

    jayatubi

    Joined:
    Dec 9, 2013
    Posts:
    143
    You need to wait until the data is ready. Use the OnComplete callback or coroutine or async/await to do that.
     
    MNNoxMortem likes this.