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); }
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); }