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