unity 中playerprefs 会把数据写在什么位置
2017-04-26 11:41
330 查看
Stores and accesses player preferences between game sessions.
Editor/Standalone
On macOS PlayerPrefs are stored in ~/Library/Preferences folder, in a file named unity.[company name].[product name].plist, where company and product names are the names set up in Project Settings. The same .plist file is used for both Projects run in the Editor
and standalone players.
On Windows, PlayerPrefs are stored in the registry under HKCU\Software\[company name]\[product name] key, where company and product names are the names set up in Project Settings.
如果发布的是windows EXE会把数据写在注册表中。
On Linux, PlayerPrefs can be found in ~/.config/unity3d/[CompanyName]/[ProductName] again using the company and product names specified in the Project Settings.
On Windows Store Apps, Player Prefs can be found in %userprofile%\AppData\Local\Packages\[ProductPackageId]>\LocalState\playerprefs.dat
On Windows Phone 8, Player Prefs can be found in application's local folder, See Also: Directory.localFolder
On Android data is stored (persisted) on the device. The data is saved in ShaderPreferences. C#/JavaScript, Android Java and Native code can all access the PlayerPrefs data. The PlayerPrefs data is physically stored in /data/data/pkg-name/shared_prefs/pkg-name.xml.
On WebGL, PlayerPrefs are stored using the browser's IndexedDB API.
如果发布的是webgl 会把数据写在浏览器数据中
Editor/Standalone
On macOS PlayerPrefs are stored in ~/Library/Preferences folder, in a file named unity.[company name].[product name].plist, where company and product names are the names set up in Project Settings. The same .plist file is used for both Projects run in the Editor
and standalone players.
On Windows, PlayerPrefs are stored in the registry under HKCU\Software\[company name]\[product name] key, where company and product names are the names set up in Project Settings.
如果发布的是windows EXE会把数据写在注册表中。
On Linux, PlayerPrefs can be found in ~/.config/unity3d/[CompanyName]/[ProductName] again using the company and product names specified in the Project Settings.
On Windows Store Apps, Player Prefs can be found in %userprofile%\AppData\Local\Packages\[ProductPackageId]>\LocalState\playerprefs.dat
On Windows Phone 8, Player Prefs can be found in application's local folder, See Also: Directory.localFolder
On Android data is stored (persisted) on the device. The data is saved in ShaderPreferences. C#/JavaScript, Android Java and Native code can all access the PlayerPrefs data. The PlayerPrefs data is physically stored in /data/data/pkg-name/shared_prefs/pkg-name.xml.
On WebGL, PlayerPrefs are stored using the browser's IndexedDB API.
如果发布的是webgl 会把数据写在浏览器数据中
相关文章推荐
- 数据集中的数据验证代码应该写在什么位置?
- Javascript代码该写在什么位置
- 什么是HADOOP、产生背景、在大数据、云计算中的位置和关系、国内外HADOOP应用案例介绍、就业方向、生态圈以及各组成部分的简介(学习资料中的文档材料)
- MySQL的数据文件一般存放在什么位置?
- 如何实现把CListCtrl类中的数据存储到txt或excel中,并且存储位置可以自己选择?具体代码是什么?
- 鼠标在slide控件的任意位置上点击,滑块滑动到该位置是如何实现的,有什么属性吗?
- 鹦鹉学舌之数据挖掘1:什么是数据挖掘
- .NET中用什么数据类型来对应char *
- 在后台控制输出数据到前台的某个位置
- 什么是JSON——Atlas采用的数据传输格式
- 我们应该把底层理论摆什么位置?
- 在 DLinq 发布之前用什么查询数据?OQL.NET 介绍 (1)
- .NET中用什么数据类型来对应char *
- 什么是托管代码和托管数据
- A. 什么是数据绑定(译)
- 客户端改变状态,服务器服务器端读不到数据的问题,大家有什么好的解决方法.
- (原创)如何让web页面产生服务器数据返回后仍然能够保留到用户输入的位置!
- 什么是脏数据,脏读,不可重复读,幻觉读?
- 移动数据位置[基础]
- 什么是数据data..........重修Data Structure笔记