Skip to content

Patch.downloadFromURL

Wesley Haws edited this page Nov 2, 2016 · 7 revisions

#downloadFromURL

public IEnumerator downloadFromURL(string url, string saveLocation, bool unzip=false)

#Parameters

Type Name Description
string url The url to a file. EX: "https://www.dropbox.com/s/y1lckubwva024pb/version.txt?dl=1"
string saveLocation Where you want the file from the url to be saved to.
bool unzip If you want the file to be unzipped when it is finished downloading.

#Description

This will download a file from a supplied url. It will optionally unzip it for you if mark "unzip" as true.

#Example

Download a file but don't try to unzip it.

using GameDevRepo;`

void Start() {
   PatchSystem patch = new PatchSystem();`
   patch.downloadFromURL("https://www.dropbox.com/s/y1lckubwva024pb/version.txt?dl=1","C:\version.txt");`
}
Clone this wiki locally