- Home /
refresh a cached texture?
Hi All,
Building a ugc gallery where the players have 3 images they can create or edit, these images are saved to server via php eg Bob_1, Bob_2, Bob_3, if Bob then opens say Bob_2.png and changes his image and saves it to server over old Bob_2.png, then I reload it into the webplayer... its the old cached image :( If I clear cache in browser and reopen webplayer the new image is there...
hmmm, I tried adding a random string to the url but still no cigar
eg.
public class example : MonoBehaviour { public string url = "http://images.earthcam.com/ec_metros/ourcams/fridays.jpg"; IEnumerator Start() { WWW www = new WWW(url); yield return www; renderer.material.mainTexture = www.texture; } }
Any pointers appreciated Thanks
Your answer
Follow this Question
Related Questions
Webplayer crash on LoadImageIntoTexture call 1 Answer
Error display when loading a 6000 x 3000 jpg by using WWW 0 Answers
Where is downloaded things from editor script being saved? 0 Answers
Issues with WWW.LoadFromCacheOrDownload 2 Answers
Is there a way to replace the question mark in the WWW.LoadImageIntoTexture? 2 Answers