Example #1
0
 protected void AddChildrenRecursive(List <TreeViewItem> rows, BundleBuilderData.BundleInfo bundleInfo, BundleBuilderTreeViewBundle node)
 {
     foreach (var target in bundleInfo.targets)
     {
         var targetPath = target.targetPath ?? "";
         var name       = "(null)";
         if (targetPath.StartsWith("Assets/"))
         {
             var assetObject = AssetDatabase.LoadMainAssetAtPath(targetPath);
             if (assetObject != null)
             {
                 name = assetObject.name;
             }
         }
         else
         {
             name = targetPath;
         }
         var tv = new BundleBuilderTreeViewTarget(target.id, 1, name, target);
         rows.Add(tv);
         if (IsExpanded(tv.id))
         {
         }
         else
         {
             // tv.children = CreateChildListForCollapsedParent();
         }
     }
 }
Example #2
0
 protected void AddChildrenRecursive(List <TreeViewItem> rows, BundleBuilderData.BundleInfo bundleInfo, BundleBuilderTreeViewBundle node)
 {
     foreach (var target in bundleInfo.targets)
     {
         string name = "(null)";
         if (target.target != null)
         {
             name = target.target.name;
         }
         var tv = new BundleBuilderTreeViewTarget(target.id, 1, name, target);
         rows.Add(tv);
         if (IsExpanded(tv.id))
         {
         }
         else
         {
             // tv.children = CreateChildListForCollapsedParent();
         }
     }
 }