Addressables not usable with webgl?

Hello!

I have a WebGL project that I’ve recently started to use addressables with. Once deployed, it tries to get the settings.json in the StreamingData folder on the local server; which from my understanding should not be accessible. Is there a solution for this or are addressables not usable with WebGL?

  1. When no specific configuration is performed, When compiling WebGL, Unity will copy the generated StreamingAssets to exported folder.
  2. Addressables will pull the resources under StreamingAssets in the root directory(exported folder).
    I don’t know what the specific problem you are talking about is, take a screenshot and look at the directory Structure and log?

I’m referring to this part of the documentation here: https://docs.unity3d.com/ScriptReference/Application-streamingAssetsPath.html

Where it says that no file access is possible on webgl. I built a project with addressables and sure enough in the logs it tries to access the settings.json in the StreamingAssets folder but a 404 is returned.

It says right there in the page you linked:
These platforms (WebGL and Android) return a URL. Use the UnityWebRequest class to access the Assets.

You need to upload them to your server and grab them via url.