- Home /
How can I view a webplayer playerprefs file?
How can I view a webplayer playerprefs file (.UPP file)
I've tried using things like notepad, but it doesn't work very well.
Any ideas?
Answer by Bunny83 · Jul 23, 2011 at 12:40 PM
The UPP files are in a custom binary format. You can't view it with any program because there is none.
edit: Now there is one :D
But you can write your own ;) The format is quite simple:
File structure:
- 16Byte header
- [Saved Prefs]
for each saved pref:
- 1 byte: length of pref name
- pref name
- 1 byte type identifier
- [pref data] (depends on the type)
That are the possible type identifier:
- 0x00 - 0x7F is a short string that is smaller then 128 characters. The actual number is the length of the saved string.
- 0x80 is a long string. The type identifier is followed by an additional 32Bit integer (4-byte little endian) length. After the length int you'll find the actual string.
- 0xFD is an IEEE 32Bit float value(4 bytes).
- 0xFE is a 32Bit integer (4-byte little endian).
The header consists of the word "UnityPrf" (8 bytes) followed by (i guess) two version integers: 0x10000 and 0x100000
That's all (at least at the moment, maybe it get extended in future versions)
I can see due to my post we have a cheat-editor soon...
Start encrypting, now!!! :D
I never store important data in the client, its always stored away behind a session on a server. So let them just TRY! BRING 'E$$anonymous$$ ON!
Sure if you want to hold a user-database on your server that's always the best solution. Even there you need to check the data that "arrives" on your server ;)
Just in case that someone needs a UPP-File-Editor I've created one. Of course as EditorWindow for Unity ;)
Your answer
![](https://koobas.hobune.stream/wayback/20220612153604im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
PlayerPrefs - Error in webplayer 1 Answer
Copy/Paste from WebPlayer or save as cookie 1 Answer
How many variables can I store using PlayerPrefs 1 Answer
PlayerPrefs when moving the webplayer 1 Answer
WWW.LoadUnityWeb vs. PlayerPrefs 1 Answer