SuperMeatBoy

ClearConsole Unity

Jan 23rd, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1.     public void ClearConsole()
  2.     {
  3.         var assembly = Assembly.GetAssembly(typeof(SceneView));
  4.         var type = assembly.GetType("UnityEditor.LogEntries");
  5.         var method = type.GetMethod("Clear");
  6.         method.Invoke(new object(), null);
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment