Anonymous Anonymous - 5 months ago
182 0

grabs .png texture from an outsource

C#

WWWship

WWW imageSource;
Texture2D imgTexture;

void Awake ()
    {      
        imgTexture = new Texture2D(732, 549, TextureFormat.ARGB32, false);     
        imageSource = new WWW( "file:///" + Application.dataPath + "/uv.png");
        imageSource.LoadImageIntoTexture(imgTexture);
    }