gpt4 book ai didi

c# - unity 名称 ' unzip ' 在当前上下文中不存在

转载 作者:行者123 更新时间:2023-12-05 09:18:56 26 4
gpt4 key购买 nike

请帮我解决这个错误,我搜索了很多但什么也没找到。

/*====== Copyright (c) 2013-2014 Qualcomm Connected Experiences, Inc. All Rights Reserved. Qualcomm Confidential and Proprietary =========*/

using System.IO;
using UnityEditor;

namespace Vuforia.EditorClasses {

/// <summary>
/// class wrapping a JS functionality to unzip a file, registers itself at the Unzipper Singleton to provide the functionality.
/// </summary>
[InitializeOnLoad]
public class SharpZipLibUnzipper : IUnzipper {
/// <summary>
/// register an instance of this class at the singleton immediately
/// </summary>
static SharpZipLibUnzipper() {
Unzipper.Instance = new SharpZipLibUnzipper();
}

public Stream UnzipFile(string path, string fileNameinZip) {
#if !EXCLUDE_JAVASCRIPT
return Unzip.Unzip(path, fileNameinZip);
#else return null;
#endif
}
}
}

enter image description here enter image description here

最佳答案

更改行以引用更新版本的 Vuforia。他们应该自己清理一下


#if !EXCLUDE_JAVASCRIPT
return Unzipper.Instance.UnzipFile(path, fileNameinZip);
#else
return null;
#endif

关于c# - unity 名称 ' unzip ' 在当前上下文中不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42745782/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com