Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

WWW Class not working on IOS

$
0
0
Hello guys, I've been working with WWW class to fetch a picture from the internet and put it in a texture. My code works fine on android device, in windows and mac editor, but not on my IOS device, nor my friends iPhone 6, the app just freezes, doesn't even crash, just nothing is happening anymore. My friend installed the IPA version, I just build from Xcode with my developer IOS team provision profile, what did I do wrong? public void GetProfilePicture(FetchProfilePicCallback callback) { _fetchProfilePicCallback = callback; WWW url = new WWW("https" + "://graph.facebook.com/" + FB.UserId + "/picture?type=large"); //+ "?access_token=" + FB.AccessToken); Texture2D textFb2 = new Texture2D(512, 512, TextureFormat.DXT1, false); //TextureFormat must be DXT5 while (!url.isDone) { LoadImage(url); }; url.LoadImageIntoTexture(textFb2); _fetchProfilePicCallback(textFb2); } private IEnumerator LoadImage(WWW www) { yield return www; }

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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