当前位置:网站首页>Unity资源路径
Unity资源路径
2022-07-04 03:52:00 【艺术就是CtrlC】
Application.StreamingAssetsPath:普通资源路径
【读写权限】:pc可读写,移动端只读
【功能特点】:不压缩,外部可访问资源内容
【Editor路径】:Assets/StreamingAssets
【平台路径】:
Win:D:/myGame/Assets/StreamingAssets
Mac : /myGame/Assets/StreamingAssets
Andorid:jar:file:///data/app/com.myCompany.myGame-1/base.apk!/assets
ios: /var/containers/Application/E32134…3B123/myGame.app/Data/RawApplication.PersistentDataPath: 自由资源路径
【读写权限】:全平台可读、可写
【功能特点】:不压缩,外部可任意体位访问。一般热更新、热补丁、热加载、存档的资源会选择存在这里
【Editor路径】:Assets/PersistentDataPath
【平台路径】:
Win:C:/Users/Administrator/Appdata/LocalLow/myCompany/myGame
Mac : /Users/lodypig/Library/Application Support/myCompany/myGame
Andorid:/data/data/com.myCompany.myGame/files
ios: /var/mobile/Containers/Data/Appliction/E32134…3B123/DocumentsApplication.DataPath:资源根路径
【读写权限】:pc可读写,移动端只读
【功能特点】:资源根目录,所有资源都在这里。
【Editor路径】:Assets
【平台路径】:
Win:E:/myGame/Assets
Mac : /myGame/Assets/
Andorid:/data/app/com.myCompany.myGame-1/base.apk!
ios: /var/containers/Application/E32134…3B123/myGame.app/DataApplication. temporaryCachePath:临时缓存路径
【读写权限】:全平台可读、可写
【功能特点】:临时缓存目录,用于存储缓存文件
【Editor路径】:Assets/TemporaryCachePath
【平台路径】:
Win:C:/Users/Administrator/Appdata/Temp/myCompany/myGame
Andorid:/data/data/com.myCompany.myGame/chach
ios: /var/mobile/Containers/Data/Appliction/E32134…3B123/Library/Catches读取说明
部分需要添加操作协议file:///
| Application | PersistentDataPath | Application | StreamingAssetsPath | |
| www方法读取 | stream方法读取 | www方法读取 | stream方法读取 | |
| PC | 需要加file:/// | 直接用 | 需要加file:/// | 直接用 |
| Adroid | 需要加file:/// | 直接用 | 直接用 | 不可用 |
| IOS | 需要加file:/// | 直接用 | 需要加file:/// | 直接用 |
边栏推荐
- "Implement both software and hardware" to help build a new cloud computing data center
- Redis:有序集合zset类型数据操作命令
- How to telecommute more efficiently | community essay solicitation
- 【读书会第十三期】多媒体处理工具 FFmpeg 工具集
- 线程常用的方法
- 02 specific implementation of LS command
- (指针)编写函数void fun(int x,int *pp,int *n)
- 【微服务|openfeign】@FeignClient详解
- RHCSA 07 - 用户与群组管理
- 2020 Bioinformatics | TransformerCPI
猜你喜欢

【CSRF-01】跨站请求伪造漏洞基础原理及攻防

02 specific implementation of LS command

Flink learning 8: data consistency
![[microservice openfeign] @feignclient detailed explanation](/img/8d/83bcde1355366c7c88a7a9ade7f9eb.png)
[microservice openfeign] @feignclient detailed explanation

User defined path and file name of Baidu editor in laravel admin

The difference between bagging and boosting in machine learning
![[csrf-01] basic principle and attack and defense of Cross Site Request Forgery vulnerability](/img/46/cb5a10ffe3fcdffb7da68dbaef5b1f.png)
[csrf-01] basic principle and attack and defense of Cross Site Request Forgery vulnerability

R语言中如何查看已安装的R包

Illustrated network: what is the hot backup router protocol HSRP?

NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
随机推荐
01 QEMU starts the compiled image vfs: unable to mount root FS on unknown block (0,0)
三年进账35.31亿,这个江西老表要IPO了
leetcode 121 Best Time to Buy and Sell Stock 买卖股票的最佳时机(简单)
Penetration practice - sqlserver empowerment
Redis:有序集合zset类型数据操作命令
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
Leetcode skimming: binary tree 07 (maximum depth of binary tree)
浅谈一篇优质的小红书文案需要具备什么
idea修改主体颜色
Three years of graduation, half a year of distance | community essay solicitation
[book club issue 13] packaging format of video files
Restore the subtlety of window position
JS realizes the effect of text scrolling marquee
Flink学习8:数据的一致性
vim正确加区间注释
VIM add interval annotation correctly
(指针)编写函数void fun(int x,int *pp,int *n)
How to add custom API objects in kubernetes (1)
vim映射命令
How was my life in 2021