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