Loading by label

I’m added addressable support to UMA. UMA has “Wardrobe Recipes” that contain “slotdataassets”, “overlaydataassets” and textures. Slots and Overlays are scriptable Objects.

The “Wardrobe Recipe” is the defining item for this group. So every item in the wardrobe recipe is labelled with the name of that recipe - so I can load everything the recipe requires in one pass.

The groups are created, labelled, and successfully built.

Now, I want to load that in one go, asynchronously.

        var op = Addressables.LoadAssetsAsync<UnityEngine.Object>(Keys, result =>
            {
                Debug.Log("Object is " + result.name); // needed for per item result later
            }); 
            op.Completed += UMAAssetIndexer_Completed;
            return op;

This throws an exception:

The labels are there, and I have verified that they are being correctly passed.

1 Like

For anyone else that sees this, the answer is to pass an array of strings as the label (instead of a List), and add a MergeMode to the argument list.

1 Like