Storing timetstamp when building for WebGL with C#
Hi everybody, my problem: I develop for WebGL and want to get and store the timestamp of some user inputs.
Two questions:
Is it correct that -- when building for WebGL -- I cannot do this in C#? Because this requires threading (?) I tried System.DateTime.Now and the stopwatch class, both of which failed after the WebGL build.
If it is correct: How do I do this in JavaScript? Has anybody done this so far and could share their code or tipps?
Disclaimer: I work with C#, but am an auto-didact and neither a C# or JavaScript pro
Thanks a lot for your time, best Jana
which version of Unity?Is it correct that -- when building for WebGL -- I cannot do this in C#? Because this requires threading (?) I tried System.DateTime.Now and the stopwatch class, both of which failed after the WebGL build.
Your answer
![](https://koobas.hobune.stream/wayback/20220612101110im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
What's the proper way to make my game listen to a browser's javascript event? 0 Answers
How to retrieve nested JSON variable - sendMessage WebGL 0 Answers
Error in BUILD with UnityWebRequest but not in Editor 0 Answers
Base64 to texture decoding, js -> webgl 1 Answer
EditorUtility.OpenFilePanel for UnityWebGL (Runtime) 1 Answer