Skip to content

Instantly share code, notes, and snippets.

@mrcarriere
Created November 17, 2016 15:10
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 mrcarriere/e5b35a81bf5a7df55d266907fc362d69 to your computer and use it in GitHub Desktop.
Save mrcarriere/e5b35a81bf5a7df55d266907fc362d69 to your computer and use it in GitHub Desktop.
using System;
using System.Reflection;
using UnityEditor;
namespace Zapdot
{
public static class ConsoleTools
{
public static void ClearLog()
{
Assembly assembly = Assembly.GetAssembly(typeof(SceneView));
Type type = assembly.GetType("UnityEditorInternal.LogEntries");
MethodInfo method = type.GetMethod("Clear");
method.Invoke(new object(), null);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment