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 /
  • Help Room /
avatar image
0
Question by honjiepin · Sep 06, 2016 at 02:47 PM · c#iosresetcacheclear

Please help how to reset or clear scores to zero like install game for the first time in osx?

hi, i have question maybe someone can help me. how do i clear or reset all memory or cache from my game project? i want to clear all, especially for best time best score that already saved inside my game like fresh from oven ready for distribution? thank you

I already manually delete unity file inside ~/Library/Preferences folder too but when i open the game, the score is exist. So frustate me. Please help. I hope you understand my english.

Comment
Add comment · 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 honjiepin · Sep 07, 2016 at 11:58 AM 0
Share

isnt it so hard to answer? i dont think this need to script, right? i believe the file is somewhere just need to delete but i dont know where is it or which one?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by itsharshdeep · Sep 07, 2016 at 11:52 AM

Hi

 PlayerPrefs.DeleteAll ();
 //Or    
 PlayerPrefs.DeleteKey ("yourKey");
Comment
Add comment · Show 2 · 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 honjiepin · Sep 08, 2016 at 06:57 AM 0
Share

Okay, i make it clear first, sorry for my english. I made a game, and i want to record the score everytime the game is over. Just say i already test it manytimes and the score now is 12345 and im done. I want to publish it now, but i need to clear the score to 0 first, right? Because i dont want if i publish it and the score still exist that is 12345. It embarassed me, right? So how do i clear it? Like delete xml file, in somewhere folder?

avatar image itsharshdeep honjiepin · Sep 08, 2016 at 09:09 AM 0
Share

I don't think so that It will publish with the app .. You can try to test that by deleting the app from your device and do fresh install. If you are working with the player preferences

If you are talking about like Google $$anonymous$$er-board or APIs score clear then you have to login to the server Google Console and there will be a button present reset leaderboard ( IF only you havn't published your leaderboard)

Same for the APIs score posting ask your Web developer to reset the scores on his data base. I will suggest it to keep it as user will think that there are other player that are playing the app.

If you save your score in your code like

 PlayerPrefs.SaveInt( "HighScore", GameContoller.Scores);

and other things also , the just Run the command once i.e.

  PlayerPrefs.DeleteAll ();

If you have stored your scores on SQLite table even then do not worry because a fresh table will be added in to the app installation. But Do check that you are not adding your scores and values to the database/table which is present in your Asset's folder If yes Then clear that table ( delete the entries of the table)

Following is the screenshot and path which contains the player-prefs https://docs.unity3d.com/ScriptReference/PlayerPrefs.html

For windows see the path here : http://answers.unity3d.com/questions/22088/i-cant-find-playerprefs-on-windows.html

Screenshot : https://www.dropbox.com/s/z5n4n35kst9uuj8/Screen%20Shot%202016-09-08%20at%2012.24.45%20P$$anonymous$$.png?dl=0

Please let me know any of your doubt. ( If I missed something)

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

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

Related Questions

Variable being reset to default after being set 1 Answer

How to get the decibel level of a mobile micro (Android/iOS) 0 Answers

On iOS, UnityWebRequest download stops when app goes to background 0 Answers

how do i reset my jump counter? 1 Answer

Mesh colliders stop working after exporting to iOS device. 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