private static void BuildABNameGroup(List <ABSingleRes> list, ref List <ABGroupRes> groupList, ref Dictionary <string, ABGroupRes> abMapping, ref Dictionary <string, ABGroupRes> pathMapping)
        {
            ProgressBarUtil.Show("生成ABGroupRes", "BuildABNameGroup", 0);
            for (int i = 0; i < list.Count; i++)
            {
                ABSingleRes res    = list[i];
                string      abName = ABResUtil.GetABName(res.path, res.type, res.importer);
                AddGroup(abName, abName, res, ref groupList, ref abMapping, ref pathMapping);

                ProgressBarUtil.Percent = (float)i / (float)list.Count;
            }

            ProgressBarUtil.Close();
        }
Beispiel #2
0
 public ABSingleRes(string path) : base(path)
 {
     importer         = AssetImporter.GetAtPath(this.path);
     mAssetBundleName = importer.assetBundleName;
     type             = ABResUtil.GetType(this.path, importer);
 }