Skip to content

Instantly share code, notes, and snippets.

@Fewes
Created February 17, 2023 09:46
Show Gist options
  • Save Fewes/016d74e0bee453cc74130865865ddc6c to your computer and use it in GitHub Desktop.
Save Fewes/016d74e0bee453cc74130865865ddc6c to your computer and use it in GitHub Desktop.
Clear console (not just errors)
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetAssembly(typeof(SceneView));
System.Type logEntries = assembly.GetType("UnityEditor.LogEntries");
logEntries.GetMethod("Clear").Invoke(new object (), null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment