wangguan
2020-12-04 06facfa32a388f74c6eba139e1a8fe4700307a6e
Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs
@@ -19,7 +19,11 @@
            DontDestroyOnLoad(this);
            Application.logMessageReceived += (string condition, string stackTrace, LogType type) =>
            {
                m_logEntries.Add(string.Format("{0}\n{1}", condition, stackTrace));
                if (type == LogType.Error)
                {
                    m_logEntries.Add(string.Format("{0}\n{1}", condition, stackTrace));
                    m_IsVisible = true;
                }
            };
        }
@@ -52,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();