From e8ee5d60d8c7ab34b880bf88c66c4ed3e2bf3a43 Mon Sep 17 00:00:00 2001 From: Meivyn <793322+Meivyn@users.noreply.github.com> Date: Fri, 29 Sep 2023 22:29:17 -0400 Subject: [PATCH] Fix Unity logging not being redirected when off-main thread --- IPA.Injector/Injector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPA.Injector/Injector.cs b/IPA.Injector/Injector.cs index 1565770b..25d8bd74 100644 --- a/IPA.Injector/Injector.cs +++ b/IPA.Injector/Injector.cs @@ -305,7 +305,7 @@ namespace IPA.Injector if (bootstrapped) return; bootstrapped = true; - Application.logMessageReceived += delegate (string condition, string stackTrace, LogType type) + Application.logMessageReceivedThreaded += delegate (string condition, string stackTrace, LogType type) { var level = UnityLogRedirector.LogTypeToLevel(type); UnityLogProvider.UnityLogger.Log(level, $"{condition}");