Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by pborg · Jul 13, 2013 at 08:30 PM · playerprefsserialization

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!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image robertbu · Jul 14, 2013 at 06:39 AM 0
Share

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.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image pborg · Jul 14, 2013 at 06:31 AM 0
Share

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!

avatar image Dothackking · Jul 15, 2013 at 09:45 PM 0
Share

No problem! Sorry for the late reply, I'm getting huge delays on emails from this site.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges