gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 23:37:58 25 4
gpt4 key购买 nike

我在创建角色时使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com