Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Last active December 19, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/5885092 to your computer and use it in GitHub Desktop.
Save tsubaki/5885092 to your computer and use it in GitHub Desktop.
URLがブラウザにキャッシュされた場合の対処。つまりGETパラメータに適当な値を付与してユニークURLとする。
using UnityEngine;
using System.Collections;
using System;
public class BundleDownload : MonoBehaviour
{
public string url = "http://*******.unity3d";
IEnumerator Start ()
{
string tempurl = string.Format (
"{0}?datetime={1}",
url,
DateTime.Now.ToFileTime ());
WWW www = new WWW (tempurl);
yield return www;
AssetBundle ab = www.assetBundle;
// 何らかの読み込み処理
ab.Unload (false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment