fix: GUIConsole now shows logs in editor too. instead of only showing the empty console.

This commit is contained in:
vis2k 2021-02-18 10:43:36 +08:00
parent 2631982cb3
commit 3db423455b

View File

@ -43,12 +43,10 @@ public class GUIConsole : MonoBehaviour
bool visible;
Vector2 scroll = Vector2.zero;
#if !UNITY_EDITOR
void Awake()
{
Application.logMessageReceived += OnLog;
}
#endif
// OnLog logs everything, even Debug.Log messages in release builds
// => this makes a lot of things easier. e.g. addon initialization logs.