Newbie
Newbie

Reputation: 21

unity the name ' unzip ' does not exist in current context

Help me about this error please I searches a lot but found nothing.

/*====== 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

Upvotes: 2

Views: 5846

Answers (2)

Marc Spraragen
Marc Spraragen

Reputation: 85

Change line to reference newer version of Vuforia. THEY SHOULD HAVE CLEANED THIS UP THEMSELVES


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

Upvotes: 8

It&#233;ration 122442
It&#233;ration 122442

Reputation: 2962

This happens when you build but get an error during the build. Vuforia tries to reimport the elements but do not find it. You can either correct the error and switch platform, and get back to the one you are building on, or relaunch the editor.

Upvotes: 0

Related Questions