Anyone have an working example on how to compress e.g. a string in c#? I have tried using System.IO.Compression.GZipStream and it compiles fine. But when playing, Unity produces the following error: Code (csharp): DllNotFoundException: MonoPosixHelper I have tried using ICSharpCode.SharpZipLib.Zip because I found the ICSharpCode.SharpZipLib.dll in Unity's Mono.framework folder, but it wont even compile: Code (csharp): The type or namespace name `ICSharpCode' could not be found. Are you missing a using directive or an assembly reference?
Could be that unity is not including the needed DLL on compile. If that is the case then it ought to be solvable by dropping the DLL right in the assets folder as I suggested here: http://forum.unity3d.com/viewtopic.php?t=8432
Thanks, that fixed the problem! I copied the SharpZipLib DLL located inside the Unity package at Code (csharp): Unity.app/Contents/Frameworks/Mono.framework/ICSharpCode.SharpZipLib.dll into to the folder Code (csharp): <project folder>/Assets/Plugins I find it strange how Unity does not recognize the DLL by itself, but that you manually have to copy it into your project, when the DLL is in fact shipped with Unity.