- Home /
How to save a game
I've looked at several articles online in this community and unify and am still clueless. I'm trying to save multiple 2d arrays of x and y coordinates to be accessed later like a save file. This is to save a level of a board game so nothing will be actively changing as it's being saved. I've looked at playerprefs briefly and have looked into serialization and JSON. I don't understand entirely but I thought serialization could be used for permanent save files as well as network connections. I saw playerprefs and am unsure whether I could use it for arrays or if it could only store individual values as in 1 int, 1 float, and 1 string. Does anybody have a good tutorial or example to use this. Thank you!
A couple of frequent links posted on this subject:
http://wiki.unity3d.com/index.php/ArrayPrefs2
http://whydoidoit.com/unityserializer/
The ArrayPrefs2 might be a good fit for what you are trying to do.
Answer by Dothackking · Jul 13, 2013 at 08:51 PM
Look into https://www.assetstore.unity3d.com/#/content/3675 I plan to quite possibly use it myself because it would save me alot of time.
so I couldn't hold it in playerprefs? I'm just asking because it seems complicated to learn a whole system like JSON. EDIT:sorry! hadn't read the full description; it does support playerprefs for future readers! This should cover everything thanks!
No problem! Sorry for the late reply, I'm getting huge delays on emails from this site.
Your answer
![](https://koobas.hobune.stream/wayback/20220613110039im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Save/load playerprefs 2 Answers
How to add strings in a list AND be able to save it and load it? Using playerpref OR serialization 2 Answers
How can I save a series of instantiated objects from an array? 2 Answers
PlayerPrefs v. XML File for Saving Data? 1 Answer
How do I save a custom class of variables to playerprefs? 2 Answers