- Home /
Answer by DaDonik · Feb 14, 2015 at 10:05 PM
The manual clearly states that PlayerPrefs are written to the registry. So there is no way to merge them with your project directory.
For the rest of the data...you project will always consist of the executable and the data folder. Thats just how things are. Have you ever taken a look at the folder of any other game?
As for the 'merging', you can use external programs to generate an installer, which will probably be just one file, but installed any Unity game will consist of the .exe and the data folder. A quick google search turned out: Installforge
Is there any special reason why you need it to be one file?
We all know that you can't really secure data...
Also i would not use PlayerPrefs in the first place, if i were concerned with security, because anyone can easily change the values via regedit...
if you want to secure your saved data, serialization its whats you need.
And still skilled people will read it like a book.
But you're right ReContraChanfle, binary data prevents most people from changing values. Google Protocoll Buffers are what i use to serialize my game data: Protobuf
Your answer
Follow this Question
Related Questions
Why does Unity create folder/file only when I re-import the script that triggered it? 1 Answer
Open custom file type 1 Answer
String.Split With Backslash 2 Answers
Renaming the *_Data folder 2 Answers
How Do I Write to a Created File? 1 Answer