当前位置:网站首页>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:/// | 直接用 |
边栏推荐
- C language bidirectional linked list first edition
- Msgraphmailbag - search only driveitems of file types
- The new data center helps speed up the construction of a digital economy with data as a key element
- leetcode刷题:二叉树04(二叉树的层序遍历)
- C语言双向链表初版
- 10 reasons for not choosing to use free virtual hosts
- Understand the principle of bytecode enhancement technology through the jvm-sandbox source code
- How to telecommute more efficiently | community essay solicitation
- 【读书会第十三期】视频文件的封装格式
- Redis:哈希hash类型数据操作命令
猜你喜欢

Flink学习8:数据的一致性

Leetcode skimming: binary tree 04 (sequence traversal of binary tree)
![[Logitech] m720](/img/bb/44144a1c3907808398c05b3b36962c.png)
[Logitech] m720

Brief explanation of depth first search (with basic questions)

RHCSA 04 - 进程管理

Idea modify body color

毕业设计项目

Flink learning 6: programming model

2020 Bioinformatics | TransformerCPI

leetcode刷题:二叉树07(二叉树的最大深度)
随机推荐
Flink learning 6: programming model
STM32 external DHT11 display temperature and humidity
(指針)自己寫一個比較字符串大小的函數,功能與strcmp類似。
Redis:哈希hash类型数据操作命令
vim正确加区间注释
Flink learning 8: data consistency
Epidemic strikes -- Thinking about telecommuting | community essay solicitation
The maximum expiration time of client secret in azure ad application registration is modified to 2 years
Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
What does software testing do? Find defects and improve the quality of software
My opinion on how to effectively telecommute | community essay solicitation
Leetcode skimming: binary tree 08 (maximum depth of n-ary tree)
Two commonly used graphics can easily realize data display
华为云鲲鹏工程师培训(广西大学)
Getting started with the go language is simple: go implements the Caesar password
[microservice openfeign] @feignclient detailed explanation
程序员远程办公喜忧参半| 社区征文
RHCSA 08 - automount配置
JS实现文字滚动 跑马灯效果