- Home /
How to save questions on a text file and show them during the game
Hi! I am creating an educational game. In the game the player kills aliens, and when he shoots an alien a pop up window shows and asks for several questions.
This questions are introduced by the user and they are saved in a .txt file, but when I export the game the file is created and saved in desktop but it's kind of not working since the new questions doesnt show up.
This is the path that I use to save the file Anyone knows what can I do?
Thanks in advance!!
Answer by pramodRamdurg · May 03, 2016 at 10:45 AM
Use persistent data directory to store and write the files. You can get the path by using following api "Application.persistentDataPath", in windows it is "C:/Users/UserName/AppData/LocalLow/YourApplicationName"
Your answer
Follow this Question
Related Questions
Need help with using Player Prefs to save number of coins collected. 1 Answer
How to save progress like high scores and money on android onto the device and online 1 Answer
JsonUtility.ToJson returns empty file 2 Answers
How can I make my buying system work and some more doubts 0 Answers
Saving Player Data 3 Answers