Skip to main content
10 events
when toggle format what by license comment
Mar 3, 2019 at 14:39 comment added Ed Marty As a side note, you could register for a callback from Application.logMessageReceivedThreaded, which will do the same thing except you would access it via Debug.Log and it would show all log messages, which may or may not be useful to you
Mar 3, 2019 at 14:07 vote accept modernator
Mar 3, 2019 at 14:04 answer added DMGregory timeline score: 1
Mar 3, 2019 at 13:48 comment added modernator @DMGregory Sure, just added more code. Then seems like it caused from System.AsyncCallback maybe?
Mar 3, 2019 at 13:47 history edited modernator CC BY-SA 4.0
added 981 characters in body
Mar 3, 2019 at 13:42 comment added DMGregory Interesting. Can you show us now where OnReceivedBytes is being called? It looks like something is leading to this being called on a thread other than the main thread, and setting text on UI Text object is supported only on the main thread.
Mar 3, 2019 at 13:39 comment added modernator @DMGregory Ok, I just added code. Note that I already mentioned in my question, it works when using Debug.Log instead.
Mar 3, 2019 at 13:37 history edited modernator CC BY-SA 4.0
added 526 characters in body
Mar 3, 2019 at 13:34 comment added DMGregory Can you show us where you're calling GameManager.Instance.Log from? The error might be at the call site, rather than inside GameManager itself.
Mar 3, 2019 at 13:27 history asked modernator CC BY-SA 4.0