- Home /
Whats better Playerprefs or Text
Whats better using player prefs to save data or saving it to a text file. It text is better coudld you tell me how to create and write in a text file. Thanks
Honestly depends on what you're trying to do. If you're talking about save-games, it's better to use binary serialization. Look it up on $$anonymous$$SDN.
Answer by jahroy · Nov 03, 2011 at 12:42 AM
The answer depends on what you're trying to do.
Are you trying to read/write data at run time or build time?
For example:
If you want to know what level the player should start at, you would use PlayerPrefs.
If you're trying to read data about a terrain grid, you would probably use a text file.
If you're trying to read from a text file in the editor, you want to learn about TextAssets.
If you want to write to a file at runtime, you need to use .Net's System.IO library.
Your answer
Follow this Question
Related Questions
If Statements with PlayerPrefs 1 Answer
playerprefs currency help 1 Answer
player prefs highscore 1 Answer
Change the text of a UI button on clicking it? 1 Answer
Score Text not Updating 1 Answer