通过Unity获取Web数据
发布时间
阅读量:
阅读量
Unity获取Web数据
WebClient client = new WebClient();
client.Encoding = Encoding.UTF8;
var address = "http://api.xianyuqp.cn/UserPlayRecord.ashx?userid=1&kindid=300"";
string historyData = client.DownloadString(address);
Unity下载Web资源
-
public void OperDownloadFile(string Url)
-
{
-
WebClient _client = new WebClient();
-
//下载之后的文件名字
-
string Path = Server.MapPath("1.mp3");
-
_client.DownloadFile(Url, Path);
-
}
Unity向Web发送信息
System.Collections.Specialized.NameValueCollection myPostPara = new System.Collections.Spec
全部评论 (0)
还没有任何评论哟~
