I want to change the red question mark texture applied to a material if the WWW loaded texture failed due to internet / connectivity issue; I am using this :
if( Application.internetReachability == Application.internetReachability.NotReachable )
{
renderer.material.mainTexture = NoConnectionTexture;
}
It works when the internet is available using this :
if( Application.internetReachability != Application.internetReachability.NotReachable )
{
var weekdayPic : WWW = new WWW ("http://www.steamdarts.com/comics/chapter1.png");
yield weekdayPic;
renderer.material.mainTexture = weekdayPic.texture;
}
So I am missing something :)
↧