- Home /
This question was
closed Feb 15 at 12:17 PM by
nivas_unity739 for the following reason:
The question is answered, right answer was accepted
Question by
nivas_unity739 · Nov 17, 2020 at 12:38 PM ·
webglthreadingparse
Parse Database in WebGL
Hi, I have a problem with the parse database connection in the WebGL build. everything is working fine in standalone & android builds. when I build & Run for WebGL its just freeze in chrome. I found WebGL doesn't support multiple Threads & tasks. Freeze by using this "query.FindAsync()" any solution for this issue? or can I convert the ParseQuery to JSON.
void Start()
{
getScore();
}
void getScore() {
ParseQuery<ParseObject> query = ParseObject.GetQuery("Score");
query.FindAsync().ContinueWith(t =>
{
if (t.IsFaulted || t.IsCanceled) {
Debug.Log("Error Exception: " + t.Exception);
} else if (t.IsCompleted) {
IEnumerable<ParseObject> results = t.Result;
foreach (var res in results)
{
Debug.Log("");
}
}
});
}
Comment