I want you to tell me if it is possible to save a variable (let’s say a String “Hello WOrld”) to a .txt file, or any other type of variable, and load it/them to my game.
If it is not difficult post me the code for:
- Make a GUI with an input field and two button, one for save, one for load.
- Enter the string to the input field and press save.
- A file is created containing the data. NOTE: I don’t want PlayerPrefs! I want an individual file, with its own path and extension, shareable.
- Then press Load and the data is loaded and ready for use.
- And all that with Javascript!!!
Can it be done with Unity API?
Do I have to use MSDN library? And how can this be done?
tldr: How to save/load from to/from an eternal file data?
This is crusial for my game.
Thank you.