- Home /
Security in Unity
Hello guys, I am making a game that needs data to be stored in a txt or an XML file. So if I store all those files in my Assets/Resources Folder. Can People access these files and change the values when the game is released?
Answer by Steff00212 · Feb 09, 2020 at 04:11 AM
If you do not encrypt the data: Yes. They Can modify a .txt or.xml file. In order to prevent them from editing it, you need to save your file as something like binary files. For that, you can use Unity's BinaryFormatter. In order to use that correctly, you'll need to learn how to serialize data.
Refer to the Unity Manual (https://docs.unity3d.com/Manual/script-Serialization-Custom.html) for that, or watch some youtube videos ^^
Hope that helps :)
Your answer
Follow this Question
Related Questions
How easy it is to fake data stored in Application.persistentDataPath? 1 Answer
Data save/update/exchange for an online mobile game 0 Answers
what is the best way for in app, including virtual currency, syncing over cross platform 0 Answers
Keep and secure user data for a multiplayer game. 1 Answer
Player Pref Security - iOS 2 Answers