- Home /
Image is not loading into Texture
I'm doing vuforia augmented reality app with image recognition. I'm loading image into texture using www but the the url of the image is showing proper and it's not loading and showing as image.
if(type.Equals("image")){
StartCoroutine (loadImage(url));
mShowGUIButton=true;
Debug.Log("image URL is"+ url);
}
IEnumerator loadImage(string imageURL) {
WWW www_image = new WWW (imageURL);
yield return www_image;
renderer.material.mainTexture = www_image.texture;
}
Comment
Your answer
Follow this Question
Related Questions
How do you crop a Texture2d 1 Answer
Host Image/Texture using Unity server, then request it using WWW on client 0 Answers
the texture appear rubbish 1 Answer
Scaling / Resizing an Image (Texture2D) 6 Answers
Half image download from the server ? 0 Answers