protected override BaseAsset[] GetAssetArray() { string[] assetPaths = base.GetAssets(); BaseAsset[] items = new BaseAsset[assetPaths.Length]; for (int i = 0, j = assetPaths.Length; i < j; i++) { items[i] = new NormalAsset <T>(assetPaths[i], base.assetFolderPath, base.outputFolderName); } return(items); }
protected override BaseAsset[] GetAssetArray() { //获取所有文件夹目录 string[] assetGroups = Directory.GetDirectories(base.assetFolderPath); BaseAsset[] items = new BaseAsset[assetGroups.Length]; for (int i = 0; i < assetGroups.Length; i++) { string folderName = assetGroups[i]; string[] assets = GetAssets(folderName, base.filter); items[i] = new GroupAsset <T>(base.assetFolderPath, folderName, assets, base.outputFolderName); } return(items); }
/// <summary> /// 获取需要删除的AB列表 /// </summary> /// <param name="lastBuildConfig">剩下的表数据</param> /// <returns>要删除的AB文件路径数组</returns> static List <string> GetFileNeedRemoveArray(List <string> lastBuildConfig) { List <string> removedList = new List <string>(); string relativePath, hash; if (lastBuildConfig != null) { foreach (var line in lastBuildConfig) { BaseAsset.ParseConfigLine(line, out relativePath, out hash); removedList.Add(relativePath); } } return(removedList); }