Answer the question
In order to leave comments, you need to log in
How to clear the console from the code?
What method should be called to clear the console?
Answer the question
In order to leave comments, you need to log in
static void ClearConsole () {
var logEntries = System.Type.GetType("UnityEditorInternal.LogEntries,UnityEditor.dll");
var clearMethod = logEntries.GetMethod("Clear", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public);
clearMethod.Invoke(null,null);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question