Unity 加载本地图片
public Sprite DownLoadSprite(string path) { WWW www = new WWW(path); Texture2D texture2D = www.texture; Sprite sprite = Sprite.Create(texture2D, new Rect(0, 0, texture2D.width, texture2D.height), Vector2.zero); if (sprite == null) Debug.LogError("加载失败"); return sprite; }