Unity Issue Tracker - UnityWebRequest buffers Http response in WebGL Player and sends all elements at once instead of one at the time
Fixed
UUM-1149
UnityWebRequest buffers Http response in WebGL Player and sends all elements at once instead of one at the time
Unity: Web Platform
Open
2021.2.X
2021.1.X
2019.4.X
Fixed
2023.1.X
2022.2.X
2022.1.X
2021.3.X
Won't Fix
2020.3.X
Unfortunately we cannot backport to Unity 2020.3 as that version of the WebGL runtime uses XHR for loading content rather than the newer fetch API which is used in Unity 2021.3+
How to reproduce:
1. Open users’ attached project “WebApiTest.zip” in VisualStudio (Open "WebApiTest.sln")
2. Run the project (Browser window should open and print "Hello1<...>Hello10")
3. Open users’ attached project “WebGL Request Test.zip" in Unity
4. Open “SampleScene” Scene
5. Switch platform to WebGL and “Build and Run” the project
6. In the web Player click button labeled “Test“ (top left)
Expected result: 10 text lines to appear one at a time
Actual result: 10 text lines appear all at once