If I have a list I want to fill with asset references addresses (“List someGroupOfAssetsCalledCards;”, just an example) and I want to populate this list of references based on the group label used to setup the addressable assets in the project…how do I do that in script with C#? I haven’t seen any connection process for getting them linked between the Asset Manager → Addressables → Groups → Addressables Groups window with the assets prepared and the reference list in my script.
My hope is I can use something simple like: someGroupOfAssetsCalledCards = FindAssetReferencesAddressesByGroupLabel(“Cards”); and it just fills up the list of AssetReferences addresses from the Addressables Groups by the Group Label.
I do not want to load or instantiate these assets. I have separate loading and loading + instantiate methods. I just want to populate the address reference list so that I can see how many asset references are in that group, and load from that list at some later point by index, and I’m not seeing how to do that anywhere.
How do I make that connection to use the List of AssetReferences addresses for later loading? What am I missing there?
Edit:
Is the only option manually adding every single asset to the list in editor, and updating every single change manually? It feels like this should be a simple thing to do, but I don’t see any examples of how to get these asset reference addresses in C#. Very frustrated here. I thought the point of addressables is not having to load everything up, yet every example I see only shows loading an asset up by reference, and dragging and dropping every single darn asset I want to work with. That’s pretty tedious.