GetAncestors() public static method

public static GetAncestors ( int instanceID ) : int[]
instanceID int
return int[]
 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));
         }
     }
 }
 protected override HashSet <int> GetParentsAbove(int id)
 {
     int[] ancestorsInstanceIDs = ProjectWindowUtil.GetAncestors(id);
     return(new HashSet <int>(ancestorsInstanceIDs));
 }
示例#3
0
 protected override void GetParentsAbove(int id, HashSet <int> parentsAbove)
 {
     ProjectWindowUtil.GetAncestors(id, parentsAbove);
 }
 protected override HashSet <int> GetParentsAbove(int id)
 {
     return(new HashSet <int>(ProjectWindowUtil.GetAncestors(id)));
 }
示例#5
0
 protected override HashSet<int> GetParentsAbove(int id)
 {
   return new HashSet<int>((IEnumerable<int>) ProjectWindowUtil.GetAncestors(id));
 }