public IEnumerator LoadShowAdditionalInfo() { Debug.Log("LoadShowAdditionalInfo: " + show.screenshot_1024x576); CachedWWW coverRequest = new CachedWWW(show.screenshot_1024x576, 3600 * 24, "Show_" + show.id_show); yield return(coverRequest.Load()); Texture2D texture = coverRequest.www.texture; Debug.Log(texture); coverIMage.sprite = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0, 0)); }
public bool IsCoverCached() { CachedWWW coverRequest = new CachedWWW(show.screenshot_1024x576, 3600 * 24, "Show_" + show.id_show); return(coverRequest.IsCached()); }