Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by N.A.K_FYP · Feb 23, 2014 at 01:44 PM · c#importvuforia

Cannot import Unity Serializer(save&load)

Hello,

I want to add a save/load function in my Augmented reality project (Vuforia).I have found a nice Unity Serializer packageV2.51. (http://whydoidoit.com/unityserializer/).

After i imported the package in my Vuforia project, there are error message shown in my unity editor.

Assets/Plugins/Editor/Unzip.js(12,25): BCE0004: Ambiguous reference 'ZipEntry': ICSharpCode.SharpZipLib.Zip.ZipEntry, ICSharpCode.SharpZipLib.Zip.ZipEntry.

However, if i create a empty project with Unity Serializer packageV2.51 only, no error message in the editor.

Is it crash in Vuforia and Unity Serializer?

Thank you.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by whydoidoit · Feb 24, 2014 at 04:15 AM

You have managed to get two copies of ICSharpCode.SharpZipLib in the project. Work out which one is newer and delete the older one.

If you search your project of ZipEntry you should be able to identify the two locations.

Comment
Add comment · Show 16 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image N.A.K_FYP · Feb 24, 2014 at 03:11 PM 0
Share

Hello,

you mean i need to delete one of the two ZipEntry.cs file in my project? However, i found a ZipEntry.cs only.

avatar image N.A.K_FYP · Feb 24, 2014 at 03:25 PM 0
Share

Also, only one (namespace ICSharpCode.SharpZipLib.Zip) in ZipEntry

avatar image whydoidoit · Feb 26, 2014 at 03:21 AM 0
Share

Hmmm, odd. Well the error message says you have two!

I wrote Unity Serializer and I use Vuforia in my project - I normalised out so I only have one copy of the SharpZipLib.dll - perhaps you have two of those?

avatar image N.A.K_FYP · Feb 26, 2014 at 05:11 AM 0
Share

Yeah, you are right. Im so confuse that what is the meaning of the error messgae.

Only one zipEntry.cs in \Plugins\whydoidoit\SharpZIP\src i can found.

It is the error message code file - Unzip.js Also, i cannot found a SharpZipLib.dll in my Asset

 import System.IO.File;
 import System.IO.Stream;
 import ICSharpCode.SharpZipLib.Core;
 import ICSharpCode.SharpZipLib.Zip;
 
 // this script unzips a container at a given path and returns a input stream to a given file in this container
 public static function Unzip(path : String, fileName : String)
 {
     var fileStream = OpenRead(path);
     var zipFile = new ZipFile(fileStream);
 
     for (var zipEntry : ZipEntry  in zipFile)
     {
         if (zipEntry.Name == fileName)
         {
             return zipFile.GetInputStream(zipEntry);
         }
     }
 
     return;
 }
avatar image N.A.K_FYP · Feb 27, 2014 at 01:31 PM 0
Share

alt text

Hello, i have found number of "ICSharpCode.SharpZipLib" in my UNITY folder, not in project file. Which one should i delete? However, i dont know which one is newer and older, all of them in a same modify date.

Thank you

未命名.png (40.6 kB)
Show more comments
avatar image
0

Answer by Voronoi · Aug 03, 2014 at 04:40 PM

I had this same problem and I'm sure it's because Vuforia includes this library in it's dll. I'm on a Mac, so not sure how to 'normalize' the project as whydoidoit suggested and could not find a duplicate entry in any of the scripts by searching.

What did work was to Refactor/Rename ZipEntry to mZipEntry to provide a unique name for the class. Hope this helps someone else!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

VUFORIA MULTI-TARGETS: SCRIPTING & CHILD HOLOGRAM VISUALIZATION 0 Answers

Detect whether marker is present or not 1 Answer

Can you give me some suggestion of saving and loading the object? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges