- Home /
What is the difference between Cache and PlayerPref?
In the Easy Save 3 asset, you can save in persistent data, but you can also save in cache mode and playerPref mode, but I'm not sure to understand the difference.
Thank you!
Answer by andrew-lukasik · Sep 02, 2020 at 04:27 PM
Cache
simply refers to Application.persistentDataPath directory. PlayerPref
storage mechanism and location are both managed by engine.
If i understand correctly, PlayerPref is good to save small data for example when the game exit to prevent loss of data if the game suddenly exit or crash while persistent data is more the generic save file data?
Exactly, PlayerPref
can easily handle small & less important game data like screen resolution settings, key binding etc. persistentDataPath
is a just a directory (`C:\Users\user_name\AppData\LocalLow\company_name\project_name`) so it's a ok place to store save files.
Your answer
Follow this Question
Related Questions
Saving and load from player prefs in Unity3D on mobile devices?? 0 Answers
Absolute most basic ranking/scoreboard functionality 1 Answer
How can you save a long variable with Playerprefs 0 Answers
PlayerPrefs not save my unlock button (Levels lock/unlock) 0 Answers
Problems with Playerprefs script 1 Answer