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