Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 ThePuppetMaster · Jan 16, 2016 at 04:25 PM · mobilesavingcross-platform

Cross Platform Saving

This is kind of a lot to ask for, but is there anyway in Unity that I could somehow create a cross platform saving system? For example, I could progress in my Android app, and then save, go onto my Apple version, and somehow be at the same point I left off on? I'm making a language learning app, and this would be a very good feature I feel, although I have no idea how I would go about doing it, or if it's even possible. All versions will be on mobile (Windows Phone, Apple, and Android), please let me know if you have any suggestions!

Comment
Add comment
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

1 Reply

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

Answer by lassade · Jan 17, 2016 at 05:58 AM

Yes you can do this, the first step is make sure all the platforms can load the data in the same way, to do this use a JSON or XML library. Assuming that your game logic is deterministic (behaves the same way in all platforms) you are good to go with just some lines.

Getting this can be tricky if you stumble upon code that does not work the same way: The serialization part is the simplest most libraries even binary ones (don’t recommend using them) will make sure to load you data as is there. But if yo u start by saving a seed for some random number generator you will need to make sure the random function works the same way in all platforms best way to be sure write your own based on some code on internet.

So finnly serialize using a text based format like JSON and XML even YAML (if you feel fancy), then load in all different version of you app, (for that put the saves file a server then use the WWW class to download then) see if works if not find the problem and fix it.

Comment
Add comment · Show 1 · 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 ThePuppetMaster · Jan 19, 2016 at 02:22 AM 0
Share

Thank you so much!

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

My android car Racing game not gone to backward and forward by mobile joystick my is there,My Android car racing game not gone backward and forward by mobile joystick my code is there? 0 Answers

How can I save and load files on android? 1 Answer

Where to save data so not overwritten on App Update? 0 Answers

saven data files (Units, Gold, Items, unlocked levels) on devices 1 Answer

Getting DualTouchControl Prefab to work? 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