Localization and Addressables not loading on Play Unity plateform

Hello there !

I’m attempting to upload my game on the https://play.unity.com/ plateform but I’m having a hard time making localization work on WebGL.
Everything works perfectly on other plateforms (Windows standalone, MacOS standalone, iOS, Android and Unity Editor).

Unfortunatly, my WebGL build can not load any Locale. As I understand the error messages in the console, the main problem comes from the Addressables not able to be loaded.

I’m surely missing something in the addressables configuration for WebGL build but can’t figure out what.

You can see the errors I got in console here:

I’m using:

  • Unity 2021.1.12f1
  • Localization 1.0.0-pre.9
  • Addressables 1.18.2
    -Scriptable Build Pipeline 1.18.0

All of thoses are versions I upgraded after having the same problem with

  • Unity 2020.3.7f1
  • Localization 0.11.0-preview
  • Addressables 1.18.9
  • Scriptable Build Pipeline 1.17.1

Thanks for the help !

1 Like

Hi!

Thank you for providing all this info :slight_smile:

Does your game work locally on WebGL when you do a Build And Run?

Hi again !

I have a similar result with a slightly different error when I do a Build and Run.

Here is the error log:

Did you build the Addressables before building the project? This isn’t an automatic step.

You can do this by:

  1. Selecting Window > Asset Management > Addressables > Groups to open the Addressables Groups window.
  2. Selecting Build > New Build > Default Build Script.

There’s more info here :slight_smile:
https://docs.unity3d.com/Packages/com.unity.addressables@1.3/manual/AddressableAssetsGettingStarted.html

1 Like

Yes this is a process I’m familiar with as I had to do it for all the other platforms :slight_smile:

I didn’t mentioned that the resulting build is composed of a StreamingAssets folder and the file StreamingAssets/aa/settings.json is in it.

To provide more info, here is the configuration of my Localization-Locales addressable Group:

Two things here are different from a default configuration:

  • Use UnityWebRequest for Local Asset Bundles is checked (same result if unchecked)
  • Bundle Naming Mode set as “Append Hash to Filename” (same result with default mode)

I suspect there is something to do with the RemoteBuildPath and RemoteLoadPath option but I can’t figure out how to make it work for the Unity Play platform :sweat_smile:

2 Likes

Hi,
I have the same issue.
I want to make a light version of my game in WebGL to make a web demo.
But my WebGL build can not load any Locale.
Did you have any updates?

Unfortunatly I didn’t …
I completely gave up as my WebGL version was just a demo so I went full English on it.

Let’s hope Unity guys are working on a fix.
Good luck on your project. If you can update this post with any solutions you may found, it could be of great help for others =)

Any updates on this? I followed the steps you suggested, did a “Build and Run” and get the same error as BigzCramillet:

“RemoteProviderException : TextDataProvider : unable to load from url : http://localhost:56937/StreamingAssets/aa/settings.json

True enough, there is no settings.json file in the StreamingAssets/aa folder of the build.

EDIT: Fixed for me by updating Addressables from 1.19.9 to 1.19.17, cleaning the addressables build cache, and doing a new addressables build followed by a project build. Not sure why it wasn’t making the settings.json, catalog.json, and a bunch of other files before.

Thanks for you reply. I guess there was indeed a little bug somewhere and it has been fixed in latest version of the Addressables !