Addressable and content loading

We have a case we are looking at the Addressable system to solve for.
In short we want player’s to be able to bring in new content they made with the Unity engine.

I know this sort of use case gets asked a lot but haven’t found the answer to this question.

How do we load an asset from a specific “mod” where we cannot assure the name of the asset is unique but can assue the name of the mod is.

So here is the use case

As a modder I need to be able to make new content for the app that can be loaded at run time and not conflict with other assets

As a developer I have created the tools to insure that the resulting packages get a unique name based on a GUID system however the indavidual assets could have the same name. One key part is the “package manifest” object we have created, this is a common scriptable object that we look for in the package and load up to know what content is in the package and how its meant to be used in the app. We intend to insistt that this object always has the same name e.g. Package Payload so

var result = Addressables.LoadAssetAsync<PackagePayloadReference>("Package Payload");

That would load the object we desire however if the user has loaded multiple mods they all have that same name so I assume the first one loaded is what would get pulled and that is not correct.

How do we insure we are loading the desired Package Payload e.g.

var result = Addressables.LoadAssetAsync<PackagePayloadReference>("[modId]/Package Payload");

or

IResourceLocator modLocator = //load this package;
var result = modLocator.LoadAssetAsync<PackagePayloadReference>("Package Payload");

TL;DR

How can I load an asset from a specific addressable package/resource locator where many loaded packages will have an asset by that same name.

I know you asked specifically for Addressables, but I would recommend you to check out this asset: [Released] uMod 2.0 - Modding support made easy! I’ve been using it for years and it definitely makes modding super easy. I tried to use Addressables for modding before and couldn’t make it work correctly

Thanks but we prefer to create our own, while I refer to it as “modding” that is mostly to save the need to explain the full project here on the forum it would be just as fair to say its a UGC like solution if you have ever worked with Steam Workshop or even a Unity Asset like solution.

Point is we need to work with Unity Addressable or Unity Content Package directly

Thats not really an answer, the OP clearly stated their requirements :slight_smile: Saying “this isnt that but I couldnt get that to work” is not helpful, its basically just thread bloat.

OP, this is general discussion. Please ask in a relevant forum section and you will likely get the help needed (There is a section dedicated to this).

@Loden_Heathen_1 https://forum.unity.com/forums/addressables.156/

Looked around and didn’t find that thread, also nothing from that thread came up in any of my searches … :slight_smile:
I have duplicated this thread there thanks for pointing it out