From bebd5bb498e2828c4499c20b891090c0ebb97032 Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Thu, 17 Dec 2020 11:05:10 +0800 Subject: [PATCH] 删除备份zip --- Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs b/Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs index 87b6d9e..56a5bb0 100644 --- a/Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs +++ b/Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs @@ -20,7 +20,10 @@ Application.logMessageReceived += (string condition, string stackTrace, LogType type) => { if (type == LogType.Error) + { m_logEntries.Add(string.Format("{0}\n{1}", condition, stackTrace)); + m_IsVisible = true; + } }; } @@ -53,7 +56,7 @@ private void OnGUI() { - GUILayout.BeginArea(new Rect(5, 460, 150, 300)); + GUILayout.BeginArea(new Rect(5, 330, 150, 300)); if (GUILayout.Button("Debug", GUILayout.Width(150), GUILayout.Height(70))) m_IsVisible = !m_IsVisible; GUILayout.EndArea(); -- Gitblit v1.9.1