Example #1
0
 public static void BuildScriptTar(BuildTarget _tar)
 {
     ToLuaMenu.CopyLuaFilesToResAct(() => {
         string path = Application.dataPath + "/Resources/lua";  //AssetDatabase.GUIDToAssetPath(strs[0]);Scripts  Resources
         if (!Directory.Exists(path))
         {
             Debug.LogError("请选择文件夹,来打包!");
             //创建文件夹
             //Directory.CreateDirectory(path);
         }
         else
         {
             Debug.LogError(path);
             //打包该文件夹//
             AssetBuildleEditor.BuildPathByTar(path, savePath, saveVar, _tar);
         }
     });
 }