Skip to content

Instantly share code, notes, and snippets.

@neuecc
Created March 13, 2015 01:19
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 neuecc/3ded460852776b0a99db to your computer and use it in GitHub Desktop.
Save neuecc/3ded460852776b0a99db to your computer and use it in GitHub Desktop.
4つずつダウンロード
// 沢山の画像のURLリスト
var imageList = Enumerable.Range(1, 490).Select(x => x.ToString());
imageList.ToObservable()
.Buffer(4)
.Select(xs => xs.Select(x => ObservableWWW.GetWWW(x)).WhenAll())
.Concat()
.SelectMany(xs => xs, (_, www) => www.texture)
.Subscribe();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment