In Unity, I can simply do a Firebase integration or use SharedPreferences to save data either online or on the device. Sending data to a custom backend is also fine but what if I want to save the data on the system that is running a particular project on that system's browser.
What I tried?
I was trying to integrate Firebase and a Unity project. The database in Firebase console was updating properly when I ran the project in the Unity Editor. However, as soon as I tried generating a build for the WebGL platform, the project breaks and I am not being able to generate a build. This is the message that I get - "Cannot build player while the editor is importing assets or compiling scripts"
I came across a discussion on this topic and decided to share it here because I think it might prove useful if someone from the WebXR Exporter team is working on developing a save feature in the near future.
How does one save data?
In Unity, I can simply do a Firebase integration or use SharedPreferences to save data either online or on the device. Sending data to a custom backend is also fine but what if I want to save the data on the system that is running a particular project on that system's browser.
What I tried?
I was trying to integrate Firebase and a Unity project. The database in Firebase console was updating properly when I ran the project in the Unity Editor. However, as soon as I tried generating a build for the WebGL platform, the project breaks and I am not being able to generate a build. This is the message that I get - "Cannot build player while the editor is importing assets or compiling scripts"
I came across a discussion on this topic and decided to share it here because I think it might prove useful if someone from the WebXR Exporter team is working on developing a save feature in the near future.