using UnityEngine;
using System.Collections;
using System;
using System.IO;
using ICSharpCode.SharpZipLib.Checksums;
using ICSharpCode.SharpZipLib.Zip;
public class MangeZip : MonoBehaviour
{
string sourcesPath = "";
string targetPath = "";
string filename = "test.zip";
ZipUtils zu;
// Use this for initialization
void Start()
{
sourcesPath = Application.dataPath + "/Zip";
targetPath = Application.dataPath + "/CompressZip";
Debug.Log("sourcesPaht is:" + sourcesPath + " " + targetPath);
StartCoroutine(StartUnZip());
}
IEnumerator StartUnZip()
{
string uri = "file:///" + sourcesPath + "/" + filename;
WWW www = new WWW(uri);
Debug.Log("uri is:" + uri);
yield return www;
if (www.error != null)
Unity之Zip解压
最新推荐文章于 2024-04-25 18:41:11 发布
![](https://img-home.csdnimg.cn/images/20240709112858.png)