|
|
@@ -147,6 +147,16 @@ namespace ET
|
|
|
{
|
|
|
//Directory.Delete("Assets/Bundles/Config", true);
|
|
|
ToolsEditor.ExcelExporter();
|
|
|
+
|
|
|
+ // 设置ab包
|
|
|
+ List<string> files = FileHelper.GetAllFiles("Assets/Bundles/Config");
|
|
|
+ foreach (string path in files)
|
|
|
+ {
|
|
|
+ string fileName = Path.GetFileName(path);
|
|
|
+ AssetImporter assetImporter1 = AssetImporter.GetAtPath($"Assets/Bundles/Config/{fileName}");
|
|
|
+ assetImporter1.assetBundleName = "Config.unity3d";
|
|
|
+ }
|
|
|
+ AssetDatabase.Refresh();
|
|
|
}
|
|
|
|
|
|
if (GUILayout.Button("Proto2CS"))
|