Hi i am working on unity 3d app, i have an url of image and i successfully download image from that url and store into document directory path and path is: /var/mobile/Applications/4EA2C956-FCA1-4552-AEE5-611A55B26CF5/Documents/sample.jpg, now i getting stuck into how to retreive image and show on as a texture i did following code.
WWW imageToLoadPath = new WWW(/var/mobile/Applications/4EA2C956-FCA1-4552-AEE5-611A55B26CF5/Documents/sample.jpg)
//rendering texture
imageToLoadPath.LoadImageIntoTexture(mIconPlane.renderer.material.mainTexture as Texture2D);
I am getting confuse how to accomplish this task and also i want to do same videos like my path will be /var/mobile/Applications/4EA2C956-FCA1-4552-AEE5-611A55B26CF5/Documents/sampleVideo.mp4. This will be great for me. Thanks in advance.