SaveSystem.DownloadFile
Declaration#
public void DownloadFile(string url, string filename, Nullable<DateTime> setTimestamp)Parameters#
| Name | Description |
|---|---|
| url | URL of file to download |
| filename | Full path to save location |
| setTimestamp | Date/Time to set on file |
Description#
Download a file to disk
Usage#
Example
using NullSave.GDTK;using System;using System.IO;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod() { // You can use the system to download a file // This is helpful for cloud storage SaveSystem.instance.DownloadFile("https://nullsave.com/assets/img/favicon.ico", Path.Combine(Application.persistentDataPath, "favicon.ico"), DateTime.Now); }
}