MozillaReality / unity-webxr-export

INACTIVE - Assets for creating WebXR-enabled Unity3D projects.
https://mixedreality.mozilla.org/unity-webxr-export/Build/
Apache License 2.0
622 stars 127 forks source link

How to save data using webxr exporter? #417

Closed knightcube closed 1 month ago

knightcube commented 4 years ago

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.