Quick piece of code to clear the console log: –

 var assembly = Assembly.GetAssembly(typeof(UnityEditor.Editor));
var type = assembly.GetType("UnityEditor.LogEntries");
var method = type.GetMethod("Clear");
method.Invoke(new object(), null);

Discover more from

Subscribe to get the latest posts sent to your email.

One response to “Unity: Clear the console output”

  1. Anything in C#

Leave a comment

Trending