码迷,mamicode.com
首页 >  
搜索关键字:streamingassets    ( 26个结果
Unity下的StreamingAssets路径不同平台的读取
这里采取Application.streamingPath定义的路径来读取测试路径:string path = Application.streamingPath + "/xx.txt";一、Android平台需要WWW类去读取,使用C#空间下的System.IO中的Stream 读取不到。二、IO...
分类:编程语言   时间:2015-06-19 18:37:33    阅读次数:193
Unity 5.0 CreateFromFile
【路径区别】一个需要"file://",一个不需要;1.WWW.LoadFromCacheOrDownload() 路径为:"file://"+ Application.dataPath + "/StreamingAssets/"+ "Sphere.assetbundle"2.AssetBundle...
分类:编程语言   时间:2015-06-15 20:15:25    阅读次数:259
Application.streamingAssetsPath
【Application.streamingAssetsPath】 This API contains the path to the StreamingAssets folder (Read Only). If you have a "StreamingAssets" folder in th.....
分类:移动开发   时间:2015-01-22 20:15:24    阅读次数:836
unity从streamingassets拷贝到persistentassets,再从persistentassets用www加载进入场景
void OnClick() { //StartCoroutine(LoadLevel()); StartCoroutine(LoadFrompersister()); } IEnumerator LoadLevel() { string url = "file://" + Application.dataPath + "/2.Android.unity3d"; Debug.Log(url); ...
分类:编程语言   时间:2015-01-18 17:13:18    阅读次数:313
Unity3D热更新全书-脚本(四) 用C#LightEvil搭建实际开发使用的脚本框架
C#LightEvil之前提供了很多和Unity结合的例子,都是采用把脚本文件放置在StreamingAssets中的方法。 这样可以利用Unity的特性,放在这个目录中的CS文件会被编译器编译,我们就利用C#编译器来对我们的脚本进行验证。 同时StreamingAssets中的文件又是直接随项目发...
分类:其他好文   时间:2014-08-07 18:42:51    阅读次数:217
Unity发布各平台路径
#if UNITY_EDITORstring filepath = Application.dataPath + "/StreamingAssets";#elif UNITY_IPHONEstring filepath = Application.dataPath +"/Raw";#elif UNI...
分类:其他好文   时间:2014-05-03 23:43:39    阅读次数:303
26条   上一页 1 2 3
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!