static void MenuDoDeleteFaces() { DeleteFaces instance = EditorToolbarLoader.GetInstance <DeleteFaces>(); if (instance != null) { UnityEditor.ProBuilder.EditorUtility.ShowNotification(instance.DoAction().notification); } }
static bool MenuVerifyDeleteFaces() { DeleteFaces instance = EditorToolbarLoader.GetInstance <DeleteFaces>(); return(instance != null && instance.enabled); }