Unity3D 移动平台的资源路径问题
发布日期:2021-06-29 11:13:27 浏览次数:3 分类:技术文章

本文共 471 字,大约阅读时间需要 1 分钟。

这里路径pc端是在StreamingAssets下

//不同平台下StreamingAssets的路径是不同的,这里需要注意一下。public static readonly string PathURL =#if UNITY_ANDROID        "jar:file://" + Application.dataPath + "!/assets/";#elif UNITY_IPHONE        Application.dataPath + "/Raw/";#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX        "file://" + Application.dataPath + "/StreamingAssets/";#elif UNITY_STANDALONE_WIN || UNITY_EDITOR        Application.dataPath + "/StreamingAssets/";#else        string.Empty;#endif

转载地址:https://blog.csdn.net/zwg739424406/article/details/82421109 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:【Laya2.0引擎踩坑笔记 01】—— 集成Protobuf
下一篇:Unity3d进阶学习(11)-- Excel与Json的读写、转换

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2024年04月02日 15时20分20秒