exporting data from webGL?
Hi we are using UNITY not for video games but for educational purposes. One of our project is so called 3D browser that allows to explore object in 3D space with various options. Good example is this one https://zkc.zebra.com/3dbrowsers/intelligent-cabinet/midi/index.html
Now they want me to create "export" functionality that will get all the parts used in given configuration and exports the "order list" with SKUs to excel. Unfortunately, I havent found suitable solution for this. It is not allowed to crate file on local HDD from webGL app and copying to clipboard does not work as well. (I understand the security reasons behind that, still I need to do export somehow) Does anybody knows how to solve this?
thanks a lot Milan
Answer by Getsumi3 · Aug 14, 2020 at 09:34 AM
Hi.
You can try to save your data to a json. Or if it really must to be saved as excel than you can try to make a .csv (not familiar how to do it but here's what I found https://forum.unity.com/threads/csv-data-and-properties.526995/ )
> It is not allowed to crate file on local HDD from webGL app
Actually you can create file via webGL. Just make sure you'll save the file on persistentDataPath Application.persistentDataPath + "/file.csv"
. While in browser the file will be saved into InnoDB until you clear your browser cache.
To have an Explorer window that will appear when you hit 'Export' button use UnityStandaloneFileBrowser https://github.com/gkngkc/UnityStandaloneFileBrowser . Works with WebGL. I'm using it to 'Import' and 'Export' files in WebGL.
Your answer
Follow this Question
Related Questions
Error after compiling WebGL 1 Answer
WebGL build failed running python and emcc 1 Answer
Export WebGL failed 0 Answers
Best way to export data and be able to import it in another PC. 0 Answers
Is it possible to stream WebGL render to the client ? 0 Answers