- Home /
How to clear a specific error/warning in the console output window?
Hello, I know from this question (http://answers.unity3d.com/questions/10580/editor-script-how-to-clear-the-console-output-wind.html) that is possible clear the console output window using this code:
public static void ClearLog()
{
Assembly assembly = Assembly.GetAssembly(typeof(SceneView));
Type type = assembly.GetType("UnityEditor.LogEntries");
MethodInfo method = type.GetMethod("Clear");
method.Invoke(new object(), null);
}
but what about clearing a specific warning/error (created by me)? Is there a way to do this?
Thanks for the help.
Comment
Your answer
Follow this Question
Related Questions
DebugConsole console clicking 5 Answers
Double click on Console Window 1 Answer
Editor Console window message no longer wraps... Help? Please? 1 Answer
No line numbers in stack trace 1 Answer
Disable warning messages 5 Answers