UnityEditor.PopupWindow.Show C# (CSharp) Méthode

Show() public static méthode

Show a popup with the given PopupWindowContent.

public static Show ( Rect activatorRect, PopupWindowContent windowContent ) : void
activatorRect UnityEngine.Rect The rect of the button that opens the popup.
windowContent PopupWindowContent The content to show in the popup window.
Résultat void
        public static void Show(Rect activatorRect, PopupWindowContent windowContent)
        {
            Show(activatorRect, windowContent, null);
        }

Same methods

PopupWindow::Show ( Rect activatorRect, PopupWindowContent windowContent, PopupLocationHelper locationPriorityOrder ) : void
PopupWindow::Show ( Rect activatorRect, PopupWindowContent windowContent, PopupLocationHelper locationPriorityOrder, ShowMode showMode ) : void

Usage Example

Exemple #1
0
        void ShowSettingsWindow()
        {
            var rect = EditorWindow.focusedWindow.position;

            rect.xMin = rect.width - SettingsMixturePopupWindow.width;
            rect.yMin = 21;
            rect.size = Vector2.zero;
            PopupWindow.Show(rect, new SettingsMixturePopupWindow(graphView));
        }
All Usage Examples Of UnityEditor.PopupWindow::Show