public override void StartDrag(TreeViewItem draggedItem, List <int> draggedItemIDs)
 {
     if (SavedSearchFilters.IsSavedFilter(draggedItem.id))
     {
         if (draggedItem.id == SavedSearchFilters.GetRootInstanceID())
         {
             return;
         }
     }
     ProjectWindowUtil.StartDrag(draggedItem.id, draggedItemIDs);
 }
コード例 #2
0
 protected override void GetParentsAbove(int id, HashSet <int> parentsAbove)
 {
     if (SavedSearchFilters.IsSavedFilter(id))
     {
         parentsAbove.Add(SavedSearchFilters.GetRootInstanceID());
     }
     else
     {
         // AssetDatabase folders (in Assets or Packages)
         var path = AssetDatabase.GetAssetPath(id);
         if (Directory.Exists(path))
         {
             parentsAbove.UnionWith(ProjectWindowUtil.GetAncestors(id));
         }
     }
 }