Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IEnumerator DownloadStatusPostPicture()
- {
- WWW downloader = new WWW(ConfigurationHelper.Configuration.dispositivo.imagen);
- yield return downloader;
- if (string.IsNullOrEmpty(downloader.error) && downloader.bytes != null)
- {
- var filename = System.IO.Path.GetFileName(downloader.url);
- StatusPostPicture.Resize(downloader.texture.width, downloader.texture.height);
- StatusPostPicture.LoadRawTextureData(downloader.texture.GetRawTextureData());
- StatusPostPicture.Apply(false, false);
- System.IO.File.WriteAllBytes(System.IO.Path.Combine(GameObject.FindObjectOfType<BrandCustomizer>().GetSavePath(), filename), downloader.bytes);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement