Esempio n. 1
0
 public Popup()
 {
     autocompleteSearchField = new AutocompleteSearchField();
     autocompleteSearchField.onInputChanged = OnInputChanged;
     autocompleteSearchField.onConfirm      = OnConfirm;
     matches = new List <SearchMatch>(Statics.types.Count);
 }
Esempio n. 2
0
        public FindPopupWindow()
        {
            autocompleteSearchField = new AutocompleteSearchField();
            autocompleteSearchField.onInputChanged = OnInputChanged;
            autocompleteSearchField.onConfirm      = OnConfirm;

            assetPaths = new List <string>(AssetDatabase.GetAllAssetPaths());
            assetPaths.RemoveAll((s) => s.StartsWith("Assets") == false);
            assetPaths.Sort((s1, s2) => s1.CompareTo(s2));
            matches = new List <SearchMatch>(assetPaths.Count);
        }