protected override void OnSaveToLocal() { base.OnSaveToLocal(); if (www != null) { ESFile.SaveRaw(www.bytes, cacheName); } }
protected override void SaveLocalCache(Texture2D value) { TextureCache cache = new TextureCache(); cache.Init(value); _cacheDataConfig.Value = cache.Config; if (jpg) { ESFile.SaveRaw(cache.Bytes, CacheName + ".jpg"); } else { ESFile.SaveRaw(cache.Bytes, CacheName + ".png"); } }
protected override void SaveLocalCache(byte[] value) { ESFile.SaveRaw(value, fileName); }