这里采取Application.streamingPath定义的路径来读取测试路径:string path = Application.streamingPath + "/xx.txt";一、Android平台需要WWW类去读取,使用C#空间下的System.IO中的Stream 读取不到。二、IO...
分类:
编程语言 时间:
2015-06-19 18:37:33
阅读次数:
193
【路径区别】一个需要"file://",一个不需要;1.WWW.LoadFromCacheOrDownload() 路径为:"file://"+ Application.dataPath + "/StreamingAssets/"+ "Sphere.assetbundle"2.AssetBundle...
分类:
编程语言 时间:
2015-06-15 20:15:25
阅读次数:
259
【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
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
C#LightEvil之前提供了很多和Unity结合的例子,都是采用把脚本文件放置在StreamingAssets中的方法。 这样可以利用Unity的特性,放在这个目录中的CS文件会被编译器编译,我们就利用C#编译器来对我们的脚本进行验证。 同时StreamingAssets中的文件又是直接随项目发...
分类:
其他好文 时间:
2014-08-07 18:42:51
阅读次数:
217
#if UNITY_EDITORstring filepath =
Application.dataPath + "/StreamingAssets";#elif UNITY_IPHONEstring filepath =
Application.dataPath +"/Raw";#elif UNI...
分类:
其他好文 时间:
2014-05-03 23:43:39
阅读次数:
303