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 anilgautam · Dec 29, 2012 at 06:43 AM · c#playerprefsxml

Is it safe to store & read data to XML file for mobile game development

Is it safe to store & read data to XML file for mobile game development. In my game there are several data to store I was thinking about to save all data in xml instead of player prefs

Comment
Add comment · Show 3
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 anilgautam · Dec 29, 2012 at 09:37 AM 0
Share

Thanks Fattie. I like this Whydoidoit Unity Serializer.+1 "is it safe" means for game optimization

avatar image Fattie · Dec 29, 2012 at 10:26 AM 0
Share

I think I know what you mean.

X$$anonymous$$L is NOT THAT FAST. But don't forget IT IS VERY LI$$anonymous$$ELY that it won't matter, other operations will bind you. The bottom line is yes many - most - games use X$$anonymous$$L with no problems.

In the rare case that performance is a problem,we need to ask an expert on X$$anonymous$$L and the like. So I will go find an expert :)

avatar image whydoidoit · Dec 29, 2012 at 11:14 AM 0
Share

Since they fiddled with UA again I'm getting notifications on questions I've never seen and no notifications on the ones I've answered before :S

1 Reply

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

Answer by ZorNiFieD · Dec 29, 2012 at 07:58 AM

http://forum.unity3d.com/threads/61198-Data-Storage-How-to-read-write-files

Comment
Add comment · Show 9 · 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 anilgautam · Dec 29, 2012 at 08:00 AM 0
Share

I wanted to know "is it safe".

avatar image Fattie · Dec 29, 2012 at 10:27 AM 0
Share

I believe here by "safe" you mean "is it fast enough for ga$$anonymous$$g use", It might be better to use "binary" or something. Let's find an expert.

avatar image anilgautam · Dec 29, 2012 at 10:28 AM 0
Share

exactly I meen that. :)

avatar image whydoidoit · Dec 29, 2012 at 11:11 AM 0
Share

So Unity Serializer uses binary to be fast and JSON to be compatible with servers - X$$anonymous$$L is very very wordy and so a lot slower. All that said, your biggest concern will be a balance of -

a) how specific you can be about what you are saving (discovery of items to save in a class by reflection is slower than doing it explicitly, but can be optimised as it is in US)

b) The IO speed of the medium to which you are saving the data

You can in some ways alleviate (b) by perfor$$anonymous$$g IO writes on a separate thread.

avatar image whydoidoit · Dec 29, 2012 at 11:13 AM 2
Share

The first question is - how often are you saving data and loading it back?

Show more comments

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

11 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

Related Questions

PlayerPrefs file wrong stored location 0 Answers

reference variables within my xml file. 0 Answers

Store clicks in sequence 1 Answer

A node in a childnode? 1 Answer

Converting float to string with time format; sending variables to disabled game object 1 Answer


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