protected void SaveDepAll(List <AssetTarget> all) { string path = Path.Combine(AssetBundleBuildPath.BundleSavePath, AssetBundlePathResolver.Instance.DependFileName); if (File.Exists(path)) { File.Delete(path); } List <AssetTarget> exportList = new List <AssetTarget>(); for (int i = 0; i < all.Count; i++) { AssetTarget target = all[i]; if (target.needSelfExport) { exportList.Add(target); } } AssetBundleDataWriter writer = dataWriter; writer.Save(path, exportList.ToArray()); }
public void SetDataWriter(AssetBundleDataWriter w) { this.dataWriter = w; }