x


Need Unity Pro to zip/unzip?

Do you have to have Unity Pro in order to zip/unzip files. If so, is there any other compression system that can be used by the indie version? Thanks much in advance.

Update: Apologies. I was referring to from within a game.

more ▼

asked Nov 16 '10 at 02:33 AM

Lance gravatar image

Lance
28 2 3 8

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

This is already answered here. (At the absolute worst, you could write your own unzip code, but there are libraries that do it. You don't need Pro for managed code libraries.)

more ▼

answered Nov 16 '10 at 06:58 AM

Eric5h5 gravatar image

Eric5h5
80k 41 131 518

Knowing the system as well as you do, you could certainly read that as the answer. I, however, did not realize that you could use managed libraries with the indie version of Unity. This is somewhat of a game-changer for me (all pun intended). Thanks much for that insight! ;)

Nov 17 '10 at 01:04 AM Lance

Yeah, as far as plugins go you only need Pro if you want actual native C code plugins.

Nov 17 '10 at 01:38 AM Eric5h5
(comments are locked)
10|3000 characters needed characters left

You can create unitypackages with unity (Assets->Export Package...). Zip files are created / opened with 7zip or winzip or pkzip or pakrat or five krabillion other programs :)

more ▼

answered Nov 16 '10 at 03:26 AM

Loius gravatar image

Loius
10.5k 1 11 41

I'm sorry, I meant from runtime - in-game.

Nov 16 '10 at 03:30 AM Lance
(comments are locked)
10|3000 characters needed characters left

As far as I can tell, yes, you would probably need to have the pro version - because with that, you get support for plugins, which should allow you to use the entirely free zlib (written in C/C++) source within your game.

I have seen a C# port of zlib, though, so, assuming there's a way for the free version of Unity to write to a file, you might be able to hack this with a script. Only trouble is, I haven't seen any mention of how to do file read/write in the ref manual, so my guess is that it isn't supported, unfortunately.

more ▼

answered Nov 16 '10 at 05:22 AM

TomHunt gravatar image

TomHunt
138 4 4 10

Nov 16 '10 at 06:57 AM Eric5h5

ah, good :) that was bugging me for a bit after i wrote that. how would anyone save games or high scores if there wasn't even basic file I/O support?

Nov 17 '10 at 08:45 AM TomHunt
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x339
x64
x16

asked: Nov 16 '10 at 02:33 AM

Seen: 3717 times

Last Updated: Nov 16 '10 at 04:01 AM