[MenuItem("XBDebug/ClearConsole %#c", false, 37)]
public static void ClearConsole()
{
// This simply does "LogEntries.Clear()" the long way:
var logEntries = System.Type.GetType("UnityEditorInternal.LogEntries,UnityEditor.dll");
var clearMethod = logEntries.GetMethod("Clear", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public);
clearMethod.Invoke(null, null);
}
Unity3D清除控制台
最新推荐文章于 2024-09-26 21:50:05 发布