Addressables.GetDownloadSizeAsync(???)

Hello.
Addressables.GetDownloadSizeAsync() take a “key” parameter. But what is the key of an addressable ?

1 Like

It’s the third one, named label in the addressable window. It should be too easy just call that parameter label right? :smile:

It’s actually every single thing you pointed out. Look at catalog.json, the m_Keys array;

how do we call GetDownloadSizeAsync on addressables with more than 1 label?

Edit: nevermind. found the answer. load the locations first using

var locations = Addressables.LoadResourceLocationsAsync(keys, Addressables.MergeMode.Intersection)

and then check download size using the locations.

2 Likes

@davidla_unity @unity_bill ?