- Home /
Import strings after build?
Hey guys, so I am making a Jeopardy style game for my sister who is a teacher. I am trying to figure out how I would be able to import questions after I have built the program so she can change questions down the road. Wondering what type of file to use as well like xml excel... Just trying to keep it simple for her. Any help would be wonderful since I am pretty new to unity and very limited on coding.
it depends on the format of the questions & answers. if you provide an example, somebody can probably suggest the most appropriate method...
It depends on the platform. If you are using Windows Standalone you can use xml files and open them with XDocument or XmlTextReader.
Answer by tanoshimi · Sep 20, 2016 at 11:55 AM
If it's just an array of question/answers: XML, JSON or simple CSV will all do the job just fine. There's plenty og examples here and elsewhere on the web. Avoid proprietary formats like XLS.
Answer by NerdClown · Sep 20, 2016 at 11:59 AM
This is the method I always use when I need to save and load something to and from xml: Saving and Loading Data: XmlSerializer
There is a little bit of a learning curve, but I think the guide is well written and helpful. I've used it in quite a few projects by now, and it works very well.
And it should also make it quite straight forward to make a small editor window for your sister to type questions into and then store as files (or possibly a standalone program if you don't want to make her use Unity).
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Importing Assets after Build 0 Answers
MySQL Connection not working with IL2CPP build 0 Answers
"Importing Itteration 2" every time I hit build. 0 Answers
Import Project from Asset store 6 Answers