public static void ShowAtPosition(Rect buttonRect, List <PropertyBox> propertiesToShow, Action <IEnumerable <PropertyBox> > CommitModificationsDelegate) { Event.current.Use(); if (addPropertyBoxPopup == null) { addPropertyBoxPopup = CreateInstance <PropertyBoxPopup>(); } addPropertyBoxPopup.Init(buttonRect, propertiesToShow, CommitModificationsDelegate); }
private void ActuallyShowPopup() { PropertyBoxPopup.ShowAtPosition(popupLocation, propertiesToShow, commitModifications); showPopup = false; }