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

Saving a Screenshot (or any data) from WebGL on to a machine

Discussion in 'WebGL' started by millefoliumink, Sep 27, 2021.

  1. millefoliumink

    millefoliumink

    Joined:
    Aug 28, 2014
    Posts:
    139
    I've managed to save a Screenshot in the Editor, using Application.persistentDataPath but have not been able to do the same thing with a deployed build.

    Is there a recommended way of doing this in Unity 2021? I've tried all the previous ways and none appear to work anymore.

    The generated WebGL path points to /idbfs/<md5 hash of data path>, but when I go to the URL I get a 404.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,991
  3. millefoliumink

    millefoliumink

    Joined:
    Aug 28, 2014
    Posts:
    139
  4. Marks4

    Marks4

    Joined:
    Feb 25, 2018
    Posts:
    491