Closed ecv80 closed 4 years ago
There is no need to call it not on main thread as it is asynchronous. You can use thread to handle data returned by it.
Thanks.
I guess the answer is no. Calling PlayGamesPlatform.Instance.LoadScores() and Social.LoadUsers() within, causes a crash regardless of whether I comment out my own MainThreadPool code or not (which works beautifully otherwise). Calling them from the game thread, on the other hand, caused no crash.
I see now how it doesn't make sense to call them from other thread than the game thread, as their callbacks will be run in the game thread regardless of the thread they were called from. Thanks for clearing that up. The reason they were being called from a new thread in the first place, is probably because of this statement which I find confusing and took as a warning: "I Unity : [Play Games Plugin DLL] 03/29/20 13:14:50 +02:00 DEBUG: Invoking user callback on game thread". Unfortunately Google returns a myriad of unrelated hits as to what this may actually mean.