Addressables-Sample
Addressables-Sample copied to clipboard
Addressables are not working on WebGL on new Unity versions
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:
- Get example code from this repository
- Open Scene Loading or Sprite Land
- Bump the unity version to one of the listed above
- Fix any errors that occurred because of version change
- See the errors
- Lower the version to 2020.3.33f
- See no errors