/// <summary> /// 打包指定目录 /// </summary> protected static void BuildSelectedDir(KTBuildBase build) { var select = Selection.activeObject; var path = AssetDatabase.GetAssetPath(select); ListDirs(path, build.filesToBuild); build.ListFiles(); build.ExecuteAssetsBuild(); }
/// <summary> /// 打包指定目录 /// </summary> protected static void BuildAll(KTBuildBase build) { ListDirs(build.GetResPath(), build.filesToBuild); build.ListFiles(); build.ExecuteAssetsBuild(); }