public static AssetMode.GroupInfo GetGroupInfo(int id) { AssetMode.GroupInfo info = null; foreach (AssetMode.GroupInfo group in gropsEditorInfo) { if (group.NameHashCode == id) { info = group; break; } } return(info); }
public static AssetMode.GroupInfo GetGroupInfo(string groupName) { AssetMode.GroupInfo info = null; foreach (AssetMode.GroupInfo group in gropsEditorInfo) { if (group.Name == groupName) { info = group; break; } } return(info); }
internal void SetSelectedGroups(string groupNames) { assets.Clear(); if (string.IsNullOrEmpty(groupNames)) { this.group = null; } else { this.group = AssetMode.GetGroupInfo(groupNames); string[] datas = AssetMode.resInfo.GetAssetsNames(this.group.Name); int id = 0; foreach (string str in datas) { AssetMode.AssetInfo info = new AssetMode.AssetInfo(id++, str); assets.Add(info); } } //m_Controller.SetSelectedItems(null); //m_SourceBundles = bundles.ToList(); SetSelection(new List <int>()); Reload(); }