Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

2019.3.0 WebGL data stored in the PDP no longer persists between sessions

Discussion in 'WebGL' started by Vygar, Feb 27, 2020.

  1. Vygar

    Vygar

    Joined:
    Dec 20, 2015
    Posts:
    23
    After upgrading from Unity 2019.2 to Unity 2019.3.0, it appears that data saved within the PDP no longer persists between sessions. I recall this being an issue with older versions of Unity and was fixed at one point but now appears to be a regression within 2019.3.0 . Has anyone else experienced this?
     
  2. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    552
  3. Vygar

    Vygar

    Joined:
    Dec 20, 2015
    Posts:
    23
    PersistentDataPath sorry
     
  4. kou-yeung

    kou-yeung

    Joined:
    Sep 5, 2016
    Posts:
    30
  5. Vygar

    Vygar

    Joined:
    Dec 20, 2015
    Posts:
    23
    Thanks! I'll look this over. So far, the issue appears to be due to how and when the browser decides to flush to disk. We got around this by calling FS.syncfs when files are written. This seems to solve the issue in the short term but there may be more to this issue. These links may hold more clues!