Exemple #1
0
 private void OnLogMessageReceivedThread(string condition, string stackTrace, LogType type)
 {
     if (mManagedThreadId != Misc.GetCurrentManagedThreadID())
     {
         AddConsoleMessageThread(condition, stackTrace, type);
     }
     else
     {
         if (autoVisibleIfError && !visible)
         {
             visible = (type == LogType.Error) || (type == LogType.Assert) || (type == LogType.Exception);
         }
         AddConsoleMessage(condition, stackTrace, type);
     }
 }
Exemple #2
0
 public IEnumerator Initialize()
 {
     mManagedThreadId = Misc.GetCurrentManagedThreadID();
     Application.logMessageReceivedThreaded += OnLogMessageReceivedThread;
     yield break;
 }