Ejemplo n.º 1
0
            private static bool Prefix(ref string stacktraceText)
            {
                var textChanged = lastText != stacktraceText;

                if (textChanged)
                {
                    lastText = stacktraceText;
                    UnityDemystify.Apply(ref stacktraceText);
                    lastResult = stacktraceText;
                }

                stacktraceText = lastResult;
                return(true);
            }
Ejemplo n.º 2
0
            private static bool Prefix(ref string stacktraceText)
            {
                var         prev       = GUI.color;
                const float brightness = .4f;

                GUI.color = new Color(brightness, brightness, brightness);
                GUI.DrawTexture(new Rect(0, 0, 10000, 1), Texture2D.whiteTexture);
                GUI.color = prev;

                var textChanged = lastText != stacktraceText;

                if (textChanged)
                {
                    lastText = stacktraceText;
                    UnityDemystify.Apply(ref stacktraceText);
                    lastResult = stacktraceText;
                }

                stacktraceText = lastResult;
                return(true);
            }