Esempio n. 1
0
        public static void OpenFuzzyFileFinder()
        {
            //Folder.ShowFolderContents("Assets/QuickFindFiles");

            var midScreen = EditorGUIUtility.ScreenToGUIPoint(new Vector2(Screen.width / 2, Screen.height / 2));
            var rect      = new Rect(midScreen, Styles.SIZE);

            rect.position += Styles.SIZE / 4;
            rect.y        -= 120;

            try
            {
                if (instance == null)
                {
                    instance             = new FindPopupWindow();
                    instance.onClosed   += ClearInstance;
                    instance.onSelected += FindResolve;
                    instance.onOpenned  += OpenResolve;
                }
                PopupWindow.Show(rect, instance);
            }
            catch { }
        }
Esempio n. 2
0
 static void ClearInstance()
 {
     instance = null;
 }