[MenuItem("Edit/ClearConsole %#c", false, 37)]
public static void ClearConsole()
{
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清除控制台log信息
最新推荐文章于 2023-10-14 22:26:48 发布