internal override BundleTreeItem CreateTreeView(int depth)
        {
            RefreshMessages();
            var result = new BundleTreeItem(this, depth);

            foreach (var child in m_Children)
            {
                result.AddChild(child.Value.CreateTreeView(depth + 1));
            }
            return(result);
        }
        internal override BundleTreeItem CreateTreeView(int depth)
        {
            RefreshMessages();
            if ((m_Children.Count > 0))
            {
                Icon = Model.GetIconByAssetType((m_Children.First().Value as BundleVariantDataInfo).GetVariantAssetType());
            }
            else
            {
                Icon = Model.GetBundleIcon();
            }

            var result = new BundleTreeItem(this, depth);

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