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 Datates · Jan 31, 2014 at 05:01 PM · buildwindows phone 8persistentdatapathsave file

Saved files deleted after creating a new build

I have a level editor in my game, which saves the generated levels to a single file. It works as it should, but whenever I build to my phone (WP8, Nokia Lumia 620), the existing files are deleted. I also save options (currently just vibrate on/off and sound volume) and high scores in a similar way.

I'm saving the file as a .txt at Application.persistentDataPath.

I have checked and confirmed that Application.persistentDataPath remains the same after updating the game.

When I publish the app, and later decide to release an update, would the files then get removed as well? Or is it only when I'm building?

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 Benproductions1 · Feb 01, 2014 at 10:07 AM 0
Share

It depends on the platform. Android should keep your data for the application, while IOS does not. Are you sure the data isn't still there and it's not getting deleted some other way?

avatar image Datates · Feb 01, 2014 at 02:15 PM 0
Share

I have now tested it on Android - it saves the data. I have not yet tested on iOS.

I also posted this question on StackOverflow, where I was told it only happens because I'm building directly to the device, and it should not happen when updating a published app.

avatar image Datates · Feb 03, 2014 at 07:05 PM 0
Share

To anyone having the same issue: check out Windows Phone Power Tools. You can browse the App storage with this program, and manually backup the data. It's a bit iffy but it does the job.

0 Replies

· Add your reply
  • Sort: 

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

19 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 avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Why does Prefabs loose children and effects when instantiated on Windows Phone 8? 0 Answers

Windows phone 8 port failing during build 0 Answers

ETC1 compressed textures are not supported when publishing to WP8 0 Answers

Windows phone 8.1, no mouse input in VS simulator. 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