using ICSharpCode.SharpZipLib.Zip; using UnityEngine; using VRS.Util; public class Test_ZipWrapper : MonoBehaviour { // Start is called before the first frame update void Start() { Zip zip = new Zip(); //zip.CompressDirectory(, "D:/PowerModel/ShenZhiYuan/新建文件夹", 5, 2048); zip.ZipFileDictory("D:/PowerModel/ShenZhiYuan/新建文件夹", "D:/PowerModel/ShenZhiYuan/新建文件夹.zip"); zip.Extract("D:/PowerModel/ShenZhiYuan/新建文件夹.zip", "D:/PowerModel/ShenZhiYuan/", 2048); } }