New*_*bie 2 c# unity-game-engine
请帮我解决这个错误,我搜索了很多但一无所获。
/*====== 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
}
}
}
Run Code Online (Sandbox Code Playgroud)
小智 8
更改行以引用较新版本的 Vuforia。他们应该自己清理这个
#if !EXCLUDE_JAVASCRIPT
return Unzipper.Instance.UnzipFile(path, fileNameinZip);
#else
return null;
#endif
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5121 次 |
| 最近记录: |