Unity 下载自 FTP

Unity download from FTP

我有一个 FTP,其中包含一堆文件,并且受用户和密码保护。

我正在尝试从中提取图像并将其分配给几何图形。

这是我正在使用的代码

 public static IEnumerator urlTexture(){
     string url = "ftp://username:password@HOST_IP/images/00013/01_01.jpg";
     Debug.Log ("Request sent");
     GlobalVariables.myUrl [1] = new WWW (url_left);
     yield return GlobalVariables.myUrl [1];
     }

只要我从 http 地址中提取图像而无需提供凭据,此代码就可以正常工作。凭据正确,但无法正常工作。

如果我得到 Url[1].url 并将字符串 returns 粘贴到我的浏览器中(firefox 和 chrome),它将完美运行.

关于为什么它在 Unity 中不起作用的任何线索?

非常感谢

阅读 WWW class 描述:

Note: http://, https:// and file:// protocols are supported on iPhone. ftp:// protocol support is limited to anonymous downloads only. Other protocols are not supported.

来源:http://docs.unity3d.com/ScriptReference/WWW.html