How to import an image using WWW in unity3d

Try this method i hope i will help full

public Texture2D tDynamicTx;

public WWW tLoad;

public string images;

images =”file://C:/Test.png”;

tLoad= new WWW(images);

tDynamicTx= new Texture2D(64, 64);

tLoad.LoadImageIntoTexture(tDynamicTx);

GUI.Label(new Rect40,40, 64, 64), tDynamicTx);

 


Need more help?

Hi there, was your problem or query resolved? If not & need more assistance, please do reach out to us at info@nanostuffs.com, we'll be more than delighted to help. Nanostuffs has 7+ years of extensive Salesforce & iOS/Android experience.
Holler Box