Unity-Technologies / Addressables-Sample

Demo project using Addressables package
1.32k stars 299 forks source link

Addressables are not working on WebGL on new Unity versions #80

Open Wasp3r opened 2 years ago

Wasp3r commented 2 years ago

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:

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
enigmablue commented 1 year ago

hi any luck