Is PlayerPrefs.Save deprecated?

I’ve started to use PlayerPrefs for our game, and while it works great, it seems that one of the commands given in the Scripting Reference Guide is no longer valid.

When I put




in a script, I get the following error in the console:

BCE0019: ‘Save’ is not a member of ‘UnityEngine.PlayerPrefs’.

Am I doing something wrong, or has PlayerPrefs.Save been deprecated? If so, it should probably be removed from the reference…

You must always use parentheses when calling a function, so PlayerPrefs.Save will never work. PlayerPrefs.Save() can’t possibly be deprecated, since it wasn’t added until Unity 3.4. :wink: I assume you’re using an older version. You can’t use Save() unless you upgrade.