public void AddElement(ListElement parent, string fileName, bool isFolder) { fileName = BundleHelp.FullPath2AssetPath(ref fileName); //BundleDataManager.Instance.AddResource(fileName, IsFolder); //var data = new HierarchyElementData(fileName, isFolder); var element = new ListElement(new HierarchyElementData(), this, fileName, isFolder); if (parent != null) { parent.AddChild(element); parent.ResetSpace(); } else { listElement.Add(element); listElement[listElement.Count - 1].SetSpace(0f); } if (isFolder) { string[] fileStrings = Directory.GetDirectories(fileName); for (int i = 0; i < fileStrings.Length; i++) { //if (BundleDataManager.Instance.IsFilter(ref fileStrings[i]) == false) AddElement(element, fileStrings[i], Directory.Exists(fileStrings[i])); } } //return data; }