unity3d web 打开网页怎么打开本地文件

&?xml version="1.0"?&
有关如何配置 ASP.NET 应用程序的详细信息,请访问
/fwlink/?LinkId=169433
&configuration&
&system.web&
&compilation debug="true" targetFramework="4.0"/&
&httpRuntime/&
&pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/&
&/system.web&
&system.webServer&
&staticContent&
&mimeMap fileExtension=".unity3d" mimeType="application/octet-stream" /&
&mimeMap fileExtension=".meta" mimeType="application/octet-stream" /&
&mimeMap fileExtension=".assetbundle" mimeType="application/octet-stream" /&
&/staticContent&
&/system.webServer&
&/configuration&
阅读(...) 评论()Unity3D打开网页链接_百度知道温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
阅读(10329)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'Unity3d Unity读取本地图片(PC版)',
blogAbstract:'\r\n版权所有,转载请注明出处:
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}2552人阅读
Unity3D(152)
unity本地缓存
WWW.LoadFromCacheOrDownload (string url,int version)
using&UnityE
using&System.C
using&System.IO;
using&System.N
public&class&HttpTest : MonoBehaviour {
&&&&void&Start () {
&&&&&&&&Stream outStream = File.Create(Application.streamingAssetsPath +&&/test.html&);
&&&&&&&&HttpWebRequest request = (HttpWebRequest)WebRequest.Create(&&);
&&&&&&&&WebResponse response =& request.GetResponse();
&&&&&&&&Stream inStream = response.GetResponseStream();
&&&&&&&&int&bufferSize = 1024;
&&&&&&&&int&readC
&&&&&&&&byte[] buffer =&new&byte[bufferSize];
&&&&&&&&readCount = inStream.Read(buffer, 0, bufferSize);
&&&&&&&&while&(readCount & 0)
&&&&&&&&&&&&outStream.Write(buffer, 0, readCount);
&&&&&&&&&&&&readCount = inStream.Read(buffer, 0, bufferSize);
&&&&&&&&outStream.Close();
&&&&&&&&inStream.Close();
&&&&&&&&response.Close();
using&UnityE
using&System.C
using&System.IO;
using&System.N
public&class&FtpTest : MonoBehaviour {
&&&&void&Start () {
&&&&&&&&FileStream outputStream =&new&FileStream(Application.streamingAssetsPath
+&&/test.html&, FileMode.Create);
&&&&&&&&FtpWebRequest reqFTP = FtpWebRequest.Create(&&)&as&FtpWebR
&&&&&&&&&&
&&&&&&&&reqFTP.Method = WebRequestMethods.Ftp.DownloadF
&&&&&&&&reqFTP.UseBinary =&true;
&&&&&&&&reqFTP.Credentials =&new&NetworkCredential(&yitaike&,&&dxc1314&);
&&&&&&&&&&
&&&&&&&&FtpWebResponse response = reqFTP.GetResponse()&as&FtpWebR
&&&&&&&&&&
&&&&&&&&Stream ftpStream = response.GetResponseStream();
&&&&&&&&int&bufferSize = 1024;
&&&&&&&&int&readC
&&&&&&&&byte[] buffer =&new&byte[bufferSize];
&&&&&&&&readCount = ftpStream.Read(buffer, 0, bufferSize);
&&&&&&&&while&(readCount & 0)
&&&&&&&&&&&&outputStream.Write(buffer, 0, readCount);
&&&&&&&&&&&&readCount = ftpStream.Read(buffer, 0, bufferSize);
&&&&&&&&&&
&&&&&&&&ftpStream.Close();
&&&&&&&&outputStream.Close();
&&&&&&&&response.Close();
unity www类
using&UnityE
using&System.C
using&System.IO;
public&class&WWWTest : MonoBehaviour {
&&&&IEnumerator Start () {
&&&&&&&&Stream outStream = File.Create(Application.streamingAssetsPath +&&/test.html&);
&&&&&&&&WWW www =&new&WWW(&&);
&&&&&&&&yield&return&
&&&&&&&&byte[] buffer = www.
&&&&&&&&outStream.Write(buffer, 0, buffer.Length);
&&&&&&&&outStream.Close();
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:1021414次
积分:15076
积分:15076
排名:第495名
原创:378篇
转载:223篇
评论:332条
我的联系方式
学习交流群 cocos2dx: unity3D:;
转载或使用本博客原创和翻译文章,请标明出外并附上链接。
阅读:7426
文章:10篇
阅读:14432
文章:12篇
阅读:11843
文章:24篇
阅读:83130
文章:13篇
阅读:17617
文章:31篇
阅读:63755
文章:34篇
阅读:44947
文章:20篇
阅读:37138
(1)(2)(1)(1)(4)(2)(2)(1)(1)(1)(3)(1)(1)(2)(3)(1)(4)(2)(6)(17)(12)(14)(17)(12)(24)(32)(58)(42)(12)(48)(126)(33)(2)(2)(13)(9)(15)(5)(12)(14)(17)(5)(1)(1)(17)(2)(2)

我要回帖

更多关于 unity3d 打开本地文件 的文章

 

随机推荐