Unity加载图片到UI
public void onLoadPictrue()
{
string strFileName = @"C:\Users\zouxin\Pictures\多个牛头人.png";
//StartCoroutine(GetTexture("file://"+strFileName));
StartCoroutine(GetTexture("http://imglf0.nosdn.127.net/img/Qy9vUmFpZ1YzZUNJdnNqWkhsSWVjLzNjK1F1aGQyazFKOC8vYjE0SDhoYVVvSC9wZE92ZTN3PT0.jpg?imageView&thumbnail=1680x0&quality=96&stripmeta=0&type=jpg"));
}
IEnumerator GetTexture(string url)
{
WWW www = new WWW(url);
yield return www;
GameObject.Find("Canvas/Panel/RawImage").GetComponent<RawImage>().texture = www.texture;
}