所有平台都不支持Unity SDK,GetPersistentDataPath

时间:2014-07-06 13:08:21

标签: unity3d parse-platform

我正在开发一款使用Parse的Unity3d Playstation游戏。似乎PS3(也许还有其他人)不支持application.persistenDataPath函数。当我尝试初始化解析时,我在系统尝试加载设置时看到文件访问异常:

DirectoryNotFoundException: Could not find a part of the path "//Parse.settings"
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filenam
e unknown>:0
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) [0x00000] in <filename un
known>:0
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access) [0x00000] in <filename unknown>:0
  at Parse.PlatformHooks+SettingsWrapper.Save () [0x00000] in <filename unknown>:0
  at Parse.PlatformHooks+SettingsWrapper..ctor () [0x00000] in <filename unknown>:0
  at Parse.PlatformHooks+SettingsWrapper.get_Wrapper () [0x00000] in <filename unknown>:0
  at Parse.PlatformHooks.Initialize () [0x00000] in <filename unknown>:0
  at Parse.ParseClient.Initialize (System.String applicationId, System.String dotnetKey) [0x00000] in <filename unknown>:0
  at Parse.ParseInitializeBehaviour.Awake () [0x00000] in <filename unknown>:0 

是否可以提供自定义回调来读/写这些设置?

0 个答案:

没有答案