예제 #1
0
        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());
        }
예제 #2
0
 public void SetDataWriter(AssetBundleDataWriter w)
 {
     this.dataWriter = w;
 }