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);
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);
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);
Subscribe to get the latest posts sent to your email.
Anything in C#
Leave a comment