位置: 编程技术 - 正文

Unity3D之各个平台的path(unity 3d ui)

编辑:rootadmin

推荐整理分享Unity3D之各个平台的path(unity 3d ui),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:unity 3d ui,unity3d的,u3d unity3d,unity3d documentation,unity3d总结,unity3ds,unity3d的,unity3ds,内容如对您有帮助,希望把文章链接给更多的朋友!

转载自: : Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/xxx.app/DataApplication.streamingAssetsPath : Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/xxx.app/Data/RawApplication.persistentDataPath : Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/DocumentsApplication.temporaryCachePath : Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Library/CachesAndroid:Application.dataPath : /data/app/xxx.xxx.xxx.apkApplication.streamingAssetsPath : jar: : /data/data/xxx.xxx.xxx/filesApplication.temporaryCachePath : /data/data/xxx.xxx.xxx/cacheWindows Web Player:Application.dataPath : (即导包后保存的文件夹,html文件所在文件夹)Application.streamingAssetsPath : Application.persistentDataPath : Application.temporaryCachePath : ---------------------------------------------------------------------------------------------------各目录权限:

根目录:StreamingAssets文件夹

#if UNITY_EDITORstring filepath = Application.dataPath &#;"/StreamingAssets"&#;"/my.xml";#elif UNITY_IPHONE string filepath = Application.dataPath &#;"/Raw"&#;"/my.xml";#elif UNITY_ANDROID string filepath = "jar: &#; Application.dataPath &#; "!/assets/"&#;"/my.xml;#endif

根目录:Resources 文件夹

可以使用Resources.Load("名字"); 把文件夹中的对象加载出来

Unity3D之各个平台的path(unity 3d ui)

根目录:StreamingAssets 文件夹

可以使用Application.dataPath进行读操作

Application.dataPath: 只可读不可写,放置一些资源数据

Application.persistentDataPath

IOS与android平台都可以使用这个目录下进行读写操作,可以存放各种配置文件进行修改之类的。

在PC上的地址是:C:Users用户名 AppDataLocalLowDefaultCompanytest

Unity3D之NGUI的优化 转载自:

避免频繁调用SetActive 转载自:

Mac同时打开多个工程 本文转载自

本文链接地址:https://www.jiuchutong.com/biancheng/378776.html 转载请保留说明!

上一篇:Unity3D如何导入网上下载的unityPackage(unity3d如何导入图片)

下一篇:Unity3D之NGUI的优化(unity3d有什么用)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络