コード例 #1
0
        static void MenuDoSmartSubdivide()
        {
            SmartSubdivide instance = EditorToolbarLoader.GetInstance <SmartSubdivide>();

            if (instance != null)
            {
                UnityEditor.ProBuilder.EditorUtility.ShowNotification(instance.DoAction().notification);
            }
        }
コード例 #2
0
        static bool MenuVerifySmartSubdivide()
        {
            SmartSubdivide instance = EditorToolbarLoader.GetInstance <SmartSubdivide>();

            return(instance != null && instance.enabled);
        }