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 Soul_Ryder89 · Apr 13, 2013 at 01:10 PM · androidplayerprefs

DeleteAll not working on android?

Hello,

I am working on a game, but even though PlayerPrefs.DeleteAll() works perfectly on my laptop with Android remote. If I build the game to my device, it doesnt work at all! How can I fix this?

Edit: It works sometimes, but 90% of the time it doesnt...

Thanks in advance

Alexander

Comment
Add comment · Show 4
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 Soul_Ryder89 · Apr 14, 2013 at 12:58 PM 0
Share

Does anyone have any idea how this is possible?

avatar image Graham-Dunnett ♦♦ · Apr 14, 2013 at 01:01 PM 0
Share

To get help with this you might want to post as much detail as you can. I would assume that if PlayerPrefs did not work on Android the forums would be full of questions about it. So, my assumption would be that you have a problem with your code. $$anonymous$$aybe post that and see if anyone can spot any problems.

avatar image gurtie · Apr 14, 2013 at 06:53 PM 0
Share

Thanks for the response Graham, but I finally managed to fix it. I used the previewlabs playerprefs plugin http://www.previewlabs.com/writing-playerprefs-fast/ and now everything works like a charm.

Still thinking it had something to do with Unity, because I didnt change anything else in my code other then changing all PlayerPrefs to PreviewLabs.PlayerPrefs, and adding import PreviewLabs.PlayerPrefs to my files...

EDIT: Oh I see i'm logged into another account, this is our companys account and not my free school version. But I am the topic opener ($$anonymous$$)

avatar image paulygons · Mar 20, 2014 at 12:02 AM 0
Share

It looks like PlayerPrefs.DeleteAll() does not working on Samsung Galaxy s4, or my Droid X. I have not checked iOS yet. I had to use PlayerPrefs.Delete$$anonymous$$ey("some$$anonymous$$ey") specifically for each key to make a work around. I will try to submit a bug report. It was hard to track this down since it only fails on the mobile device.

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

13 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

Related Questions

DeleteAll not working on android? 0 Answers

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Is it okay to store many player preferences for mobile? 1 Answer

How many different scripts do I need to write to create a highscore system? 1 Answer

how to save a load a game? 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