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