c# - PlayerPref 问题,无法在 Windows 上找到 .plist 文件

标签 c# unity3d

我在创建角色时使用 playerPref,我需要找到 plist 文件。我已经阅读了 playerPref 上的 API 文档。我继续团结,改变了公司和游戏名称,然后我去了 regedit > HKCU/software/CompanyName/GameName。该文件在那里,但没有任何 .plist 文件。有什么想法吗?

最佳答案

plist 只能在 Mac OSX 中找到,如文档所述here .

On Mac OS X 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.

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: Windows.Directory.localFolder

所以你应该找到注册表键值,而不是 plist。

“The file is there but there isnt there isnt.plist files”,注册表中没有文件,所以不可能“在那里”,你看到的是注册表项,而不是文件。

enter image description here

关于c# - PlayerPref 问题,无法在 Windows 上找到 .plist 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30022179/

相关文章:

c# - Thread.Sleep 与 Task.Delay?

.net - 可以在 Unity3D 中使用 lua 代码

c# - 如果鼠标按钮已弹起但不在此游戏对象上

c# - C#App中小型项目的最佳数据库设计

c# - 在 Unity3d 中导入数学时出错

c# - 更改已附加的事件处理程序运行时

c# - Unity3D Rigidbody 播放器在运行时跳跃受限

c# - 统一注册表单验证

c# - Unity C# 弹墙

c# - 在 C# 字典中使用对象