how to get the asset reference from the asset entry?

I’m new to addressables. I’m trying to find a way to turn a List into a List .
I’m writing a wizard that first filters the entries by some main labels like “sound” and “images” and then create a list for any other label that is in a category. So I may have a list of fx sounds, a list of hit sounds, etc. After creating the lists, it populates them in the inspector.
I have everything, but I can’t solve how to turn my entries into references.

Bump. Sorry to bother, but I need this info.

Did anyone find a solution to this?

Just use the AssetReference constructor. the following code should do the trick

List<AddressableAssetEntry> entryList;

entryList.Select( entry => new AssetReference(entry.guid) ).ToList();
1 Like