- Home /
Question by
Yohan_Games · Oct 13, 2012 at 03:30 PM ·
variableplayerprefssaveload
Save/Load Variable with playerprefs
Hi Guys! Im kinda Newbie at coding but Im more made for Level Designing. I have a Question to ask. Everytime i search at google. it Just Show Advanced Save/Load functions in C# :/ but my Variable is a JS. Im now wondering if there is any Easy way to save Variables in JS with PlayerPrefs
Sorry for my English :/ im not very good at it.
Comment
Best Answer
Answer by dannyskim · Oct 13, 2012 at 05:14 PM
It really depends on what you're trying to save to PlayerPrefs. As you can see from the documentation, you can either store a float, string, or integer:
http://docs.unity3d.com/Documentation/ScriptReference/PlayerPrefs.html
Any other variable that doesn't match those three types simply can't be saved in PlayerPrefs.