- Home /
PlayerPrefs not Loading all the Members...is anybody else having this issue??
!
So I can't use various of the Members of the PlayerPrefs Function? is anybody else experiencing this issue. I have tried reloading everything and it still will not work. Plus unity tells me that PlayerPrefs.GetInt(){} is not a member of the PlayerPrefs functions. Can anybody help???
I'm using the Free Version of unity is this perhaps the problems? is there a walk-around for this? all I need to do is to save 1 int and reload it when the game is restarted.
HELP!!!
Answer by Bunny83 · Jun 02, 2012 at 11:51 PM
The problem is by far much simpler ;) You created your own PlayerPrefs class!!!
Never use class- / script- names of existing classes. You effectively hiding Unity's class.
You can still use it like this:
UnityEngine.PlayerPrefs.GetInt();
but it's better to rename your PlayerPref.js to something else ;)
Your answer
Follow this Question
Related Questions
Playerprefs not saving 1 Answer
Playerprefs save player position 3 Answers
HighScore - Timer 1 Answer
Cloud recognition in Vuforia 0 Answers
Highscores don't always get saved playerprefs unity3d 0 Answers