• 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 /
This question was closed Jul 19, 2015 at 11:12 PM by getyour411 for the following reason:

Too subjective and argumentative

avatar image
Question by Anro · Jul 19, 2015 at 07:12 PM · savesave databest practice

Best practice: Save informations

Hi,

I design a tool for roleplaying games. Right now I was wondering, what the best way is to save informations (A set of "Talents" that is unique to a "world") on a local computer. Later on in the project, I will use a database, but I am not ready with that yet and want to concentrate on other aspects right now.

I know about the PlayerPrefs. I would prefer an xml writer or something along these lines though. I have no problem to create a function, that converts the object to its "data as xml-conform-string" or smth and vice versa. But maybe there is a better way to save it. JSon is an other option I know of, even if I do not know much about it.

C# is the language I use in this projekt.

I just want to know, if the playerPrefs (Shall rarely used during the "game", I read?), the XML-approach, the JSon or another persistant approach is the best for my application.
I would be very interested in your experiances with libraries for that.

(Save changes to the harddrive, not too frequently, relatively fast access - would be the main requirements.)

I just want to change a talent that is created and load it in a rational amount of time, if I need it after a program start again.

Once again - I could make it work - kinda ;-). But I wonder, what the best way would be / is, even though I just need it as an interim solution. ("interim" could be a long while though ;-))

Thanks in approach, I hope for kind and informative answers :-)

Comment

People who like this

0 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 getyour411 · Jul 19, 2015 at 11:12 PM 0
Share

XML and JSON should be fine; this question is like to produce multiple subjective answers with no 'final answer' possible; I'm going to close it please use the Forums for general design questions. If you have a specific question about an implementation, please ask again.

0 Replies

  • Sort: 

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Android, How can I permanently save data? (A couple variables) 4 Answers

Is there a way to save a 2D characters path and replay it on respawn? 0 Answers

Save&load 100% works on pc, but not on android! 1 Answer

Saving Player Data 3 Answers

Error while saving game: SerializationException: Type 'UnityEngine.GameObject' in Assembly 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable. 0 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