Hi all
I have this script attached to a RawImage file in my games UI
Both jpg files are the same. One I uploaded to Imgur, this works. The other is on my own website. The url to my website works fine, I have checked in on two computers and several browsers.
public class DownloadImage : MonoBehaviour {
string url = "http://megabrogames.rf.gd/pic.jpg";
//string url = "https://i.imgur.com/xBSyvRx.jpg";
IEnumerator Start () {
WWW www = new WWW(url);
yield return www;
GetComponent<RawImage>().texture = www.texture;
}
}
All I get is the red question mark. But if I uncomment the other one instead it all works perfectly.
My problem is that I have hard-coded the url into the game, and I want to change the image each week. It has to be the same URL for that to work, but i think with Imgur it will auto assign whatever url it feels like.
thanks for any help