Skip to content

Instantly share code, notes, and snippets.

@anchan828
Created February 15, 2014 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anchan828/9024678 to your computer and use it in GitHub Desktop.
Save anchan828/9024678 to your computer and use it in GitHub Desktop.
private static void ClearConsoleLogs()
{
var type = Types.GetType("UnityEditorInternal.LogEntries", "UnityEditor");
var info = type.GetMethod("Clear", BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance);
info.Invoke(null, new object[0]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment