internal override BundleTreeViewItem CreateTreeView(int depth) { RefreshMessages(); var result = new BundleTreeViewItem(this, depth, AssetBundleModel.folderIcon); foreach (var child in m_AssetBundleInfos) { result.AddChild(child.Value.CreateTreeView(depth + 1)); } return(result); }
internal override BundleTreeViewItem CreateTreeView(int depth) { RefreshMessages(); Texture2D icon = null; if ((m_AssetBundleInfos.Count > 0) && ((m_AssetBundleInfos.First().Value as BundleVariantDataInfo).IsSceneVariant())) { icon = AssetBundleModel.sceneIcon; } else { icon = AssetBundleModel.bundleIcon; } var result = new BundleTreeViewItem(this, depth, icon); foreach (var child in m_AssetBundleInfos) { result.AddChild(child.Value.CreateTreeView(depth + 1)); } return(result); }