Beispiel #1
0
        public override BundleTreeItem CreateTreeView(int depth)
        {
            var result = new BundleTreeItem(this, depth, Model.GetFolderIcon());

            foreach (var child in m_children)
            {
                result.AddChild(child.Value.CreateTreeView(depth + 1));
            }
            return(result);
        }
Beispiel #2
0
        public override BundleTreeItem CreateTreeView(int depth)
        {
            Texture2D icon = null;

            if ((m_children.Count > 0) &&
                ((m_children.First().Value as BundleVariantDataInfo).IsSceneVariant()))
            {
                icon = Model.GetSceneIcon();
            }
            else
            {
                icon = Model.GetBundleIcon();
            }

            var result = new BundleTreeItem(this, depth, icon);

            foreach (var child in m_children)
            {
                result.AddChild(child.Value.CreateTreeView(depth + 1));
            }
            return(result);
        }