shamsdev / davinci

An esay-to-use image downloading and caching library for Unity
MIT License
290 stars 52 forks source link

Saving download? Caching detail? #6

Open Zolnier opened 4 years ago

Zolnier commented 4 years ago

Love this resource! Very elegant! Is there a way to save the downloaded image to a file during runtime? Also, what is the function of the .Caching(true) element as I cannot find any documentation on that? Great work on this!!

shamsdev commented 4 years ago

Hello. I'm happy to hear that you are using Davinci. First, you can simply control caching with setCached function. (Default is True) Davinci.get().load(imageUrl).setCached(true).into(image).start(); Also, thanks for mentioning "save the downloaded image to a file", it's a good feature. Currently, we save cached images as a file in Application.persistentDataPath + "/" + "davinci" + "/" but not returning the full path of file. I'll be happy if anyone can send a PR for add this feature, otherwise I'll work on this soon. Thanks Zolnier 😉

Techie-Pi commented 4 years ago

I'll be happy if anyone can send a PR for add this feature, otherwise I'll work on this soon.

I'm actually working on it too 😉 I can't use Unity in some days, but anyway I'm trying to add the feature (when I test it, I'll make the PR)

shamsdev commented 4 years ago

I'll be happy if anyone can send a PR for add this feature, otherwise I'll work on this soon.

I'm actually working on it too 😉 I can't use Unity in some days, but anyway I'm trying to add the feature (when I test it, I'll make the PR)

Sounds great! Thank you

saitejapalagummi commented 4 years ago

will this plugin works for unity webgl. and the cache part also?