Addressables-Sample icon indicating copy to clipboard operation
Addressables-Sample copied to clipboard

Addressables are not working on WebGL on new Unity versions

Open Wasp3r opened this issue 2 years ago • 1 comments

Hi,

as said in the title, addressables are not working on WebGL. Tested on 2 examples from this repository: Scene Loading and Sprite Land. They work on their original version (2019.4.9f1) and on 2020.3.33f. When I bump the version to 2022.1.23f1 I'm getting the errors listed below:

Asset Bundle download is complete, but no data have been received

RemoteProviderException : Unable to load asset bundle from : [http://localhost:8000/StreamingAsse...s_all_f4ba373f651003dcc29897ae4302b413.bundle](http://localhost:8000/StreamingAssets/aa/WebGL/defaultlocalgroup_assets_all_f4ba373f651003dcc29897ae4302b413.bundle) UnityWebRequest result : ConnectionError : Received no data in response ResponseCode : 200, Method : GET url : [http://localhost:8000/StreamingAsse...s_all_f4ba373f651003dcc29897ae4302b413.bundle](http://localhost:8000/StreamingAssets/aa/WebGL/defaultlocalgroup_assets_all_f4ba373f651003dcc29897ae4302b413.bundle)

I've checked on versions:

  • 2022.1.23f1
  • 2022.2.0b15
  • 2023.1.0a19

Reproduction steps:

  1. Get example code from this repository
  2. Open Scene Loading or Sprite Land
  3. Bump the unity version to one of the listed above
  4. Fix any errors that occurred because of version change
  5. See the errors
  6. Lower the version to 2020.3.33f
  7. See no errors

Wasp3r avatar Nov 30 '22 07:11 Wasp3r