Quantcast
Channel: Latest Questions by CallToAdventure
Viewing all articles
Browse latest Browse all 62

Check Internet availability

$
0
0
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 :)

Viewing all articles
Browse latest Browse all 62

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>