Property File or Similar
Hi There, I would like to know if in Unity is there a way to use a properties file or something similar, I want to have pre-defined values that I will need to read on my game, any feedback will be appreciate Regards Yuri
Answer by jgodfrey · Apr 15, 2016 at 07:00 PM
There are any number of ways you can "store" information for use by your game. Which one is best depends on your needs and your preferences.
A few examples are:
PlayerPrefs (http://docs.unity3d.com/ScriptReference/PlayerPrefs.html)
A source-level class that contains values you want to load into your game
An external file (you can simply read/write your own file using .NET provided mechanisms)
A database (SQLite is a popular choice).
Without more details, it's difficult to be more specific.
PlayerPrefs is the the option that I was looking for, thanks for the feedback
Great. In that case, I converted my comments into an answer so it can be accepted.
Your answer
Follow this Question
Related Questions
How to create an XML in an absolute path with WWW Class 0 Answers
How can i sort the player data from my xml document by score? 1 Answer
Best way to store a large ammount of spells ? 1 Answer
IEnumerable Elements 'Where' and 'Select' In Unity? 0 Answers
Blank Project show error while create Android Build 0 Answers