Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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();
 }