using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
public class DeleteAllAssetBundle
{
[MenuItem("Tools/DeleteAllAssetBundles")]
public static void DeleteAllAssetBundles()
{
//刪除生成的AB包 判斷需要刪除的AB包目錄是否存在
if (Directory.Exists(PathTools.GetABOutPath()))
{
File.Delete(PathTools.GetABOutPath());
File.Delete(PathTools.GetABOutPath()+".meta");
//刷新下文件
AssetDatabase.Refresh();
Debug.Log("刪除ab包完成");
}
}
}
-------------------------
--若是對您有所幫助,世界便多了一份你我的溫暖
--您的支持將是我的動力,手有餘糧的話,一點點讚賞我將開心不已(一毛錢也是極好的)