Copyright © 2026 Unity Technologies
No need to port - code already landed to trunk before Unity 6.1 fork.
No need to port - code already landed to trunk before Unity 6.1 fork.
Fixed an issue that Application.persistentDataPath would not automatically persist, by adding a new JS config option "autoSyncPersistentDataPath: true" to enable automatic synchronization of Application.persistentDataPath over to IndexedDB. This option is found in the Builds Index.html file, uncomment it and refresh the running build page and the issue will be resolved.
Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
How to reproduce:
1. Open the “WebGLStorageTest“ project
2. Open the “SampleScene”
3. Make sure to switch the Platform to “WebGL” (File > Build Settings > “WebGL” > “Switch Platform”)
4. Build And Run
5. Open Chrome DevTools (F12) and select the Application tab
6. Expand “IndexedDB” > “/idbfs” and select “FILE_DATA”
7. In the Player select the "Write" button
8. In the Chrome DevTools select the refresh icon and observe the Key/Value fields
9. In the Player select the "Sync" button
10. Repeat step 8
Expected result: The record should be automatically saved after selecting the "Write" button
Actual result: The record is saved after selecting the “Sync” button
Reproduced with: 2021.3.34f1, 2022.3.17f1, 2023.2.5f1, 2023.3.0b2
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Browser reproduced on: Chrome, Firefox, Edge
Notes:
1. Could not test in Editor → Not possible to check if the Key/Value fields are saved the same way as using Player DevTools
2. Information on how to open the DevTools on different browsers can be found here: https://docs.unity3d.com/Manual/webgl-debugging.html
Issues you vote on will appear here