Building and Loading Addressables to / from local path (Application.persistentDataPath)

Hello,
I think this was asked before, but I didn’t really find a solution. Most of the questions were older and used a preview version and others said they only found a “workaround”. So I thought it might be better to start a new thread.

So my question seems simple, I used AssetBundles to load “mods” (AssetBundles created by users, they had Unity installed) from a local path Application.persistentDataPath in my case.

How can I do the same thing with the new Addressables system? I read about web hosting all the time in every tutorial but maybe im blind, but I can’t find any tutorial which explains how to build and load Addressables from local locations like Application.persistentDataPath.

Note: The Unity project of the game is a differnt Unity project than the one that will be used to create the (mod) Addressables, but they will be the same Unity version of course.

Can someone help me and send me some links to guides that I maybe missed?

I also wanted to do something similar. I just want to be able to load addressables from any folder on my local computer instead of the default Unity Asset folder or the default load path for Unity Adressables. If this is possible could you please point me in the right direction thanks.

I can’t remember the exact method because we’ve never done it, but I believe the local directory you want to be reading/writing from is StreamingAssets. IIRC, you can point Addressables to a devices local StreamingAssets path and pretty much anything in there can be accessed the way you want.

I don’t really know how Addressables would work with custom bundles created by users because of the content catalogue setup, but thats where you might want to start looking.

1 Like

I didn’t find a solution yet, but to be honest I didn’t spend too much time, because I went back to “classic” asset bundles, they do everything I need and I already have experience with them, they can easily be loaded from any local path at runtime and created from any Unity project (for modders) I want. I guess there is a way to do the same with Addressables, but I have other things on my todo list, I might try it again in the future.

1 Like

Thanks @LucasHehir @R1PFake for the suggestions! I appreciate it and God bless!

Look at this tutorial: Introduction to Modding Unity Games With Addressables.

1 Like