• 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
5
Question by Ryuuguu · Feb 05, 2010 at 11:11 AM · iphoneplayerprefs

Where on iPhone editor are playerprefs stored.

Where are playerprefs stored by unity iPhone editor? Are there still problems with them not being read/written to disk while editor is open?

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
4
Best Answer

Answer by Azterix · Apr 18, 2010 at 03:46 PM

The playerprefs file is stored at:

/Users//Library/Preferences/unity.YourCompanyName..plist

The file is not written to until the editor application exits. We have tried to force writes, but the prefs data is managed in memory and only written to file on exit - this is true for the editor as well as the player/app.

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 demize2010 · Apr 20, 2011 at 09:31 AM 0
Share

Thanks, this is handy to know. I guess its a case of keeping states in memory, loading them on app load and writing them back when the app closes. Is this the same for android?

avatar image Waz · Sep 02, 2011 at 02:15 AM 0
Share

Note as of Unity 3.4:

http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.Save.html

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Achievements with PlayerPrefs... 2 Answers

Accessing bundle identifier at runtime on iPhone 1 Answer

How to save text and display using Touch Screen Keyboard 1 Answer

Singleplayer PlayerPrefs hacking - Inevitable? 1 Answer

Is Playerprefs secure? 4 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges