Ejemplo n.º 1
0
        public static PYSelectorWindow Init(Rect windowRect, string[] tags, string[] tagsDescriptions, Action <PYSelectorEventData> onSelectedItem)
        {
            _windowRect        = windowRect;
            _windowRect.height = 320;

            PYSelectorWindow window = Editor.CreateInstance <PYSelectorWindow>();

            window.ShowAsDropDown(GUIToScreenRect(_windowRect), new Vector2(_windowRect.width, _windowRect.height));
            window.Initialize("None", tags, tagsDescriptions, onSelectedItem);

            window.Focus();
            return(window);
        }