Recently when handling downloading zip’s from our patch server then extracting them in unity I wrote this downloader class to better handle the process.
I realize that Unity 3D has there WWW class built into there API for this very purpose however if you spend about 10 minutes snooping around the forum about it you’ll quickly see that they haven’t given it much attention as of late and it’s progress capabilities don’t work half the time (Or at all in some cases).
So without further ado here’s the class I’ve made:
Not really much to it. Probably the more versatile part is the built in Unzip method to make it easy to use with download zip -> extract zip type workflows.
You can easily remove that functionality if you don’t need it, but otherwise you’ll also have to hook your project up with some dependencies found here:
The class is pretty self explanatory but i’ll through an example up anyways.
Feel free to do whatever with it, that’s why i’m posting it.
I haven’t posted as much on this as I’d like. It’s turned into more of a “Tumblr” then an actual programming blog like I’d intended. After seeing this however I’m going to really make sure I don’t let this slip away and actually use it how I wanted to. We’ll see what happens anyways….
On a side note I realized today that Lifehacker is just like a hitch hiker’s guide to the galaxy. Want to know about digital camera’s when looking to buy one. Just look them up on Lifehacker and all research is done… Shit yeah.
Also I don’t know if I even need to post this or how tumblr handle’s it but I’ve pointed the domain hawksprite.com at my blog.
The thing about programming is that you’ll get to the end of a year and realise that while you spent a lot of the year writing code, you never actually created the things you wanted to at the start of it.
Entirely true, often it’s actually a bit depressing how many things you want to do and never seem to be able to find the time to work on.
I setup a quick Unity light stage, which is basically just a zipped project with a decent light setup and useful scripts for testing assets in unity. For the most part there isn’t to much interesting going on here, just a camera setup and a useful script for controlling the camera in run time similarly to how it runs in the scene editor.
If you’re looking for a quick unity setup to throw up some assets and play with them this may be a good starting point for you.
L Shift Speed Up
R Mouse View Direction