I gotta tell you. I’m new to Unity and programming. I want to try creating some sort of typing tutor. This is just a personal challenge/learning. I’d like unity to read a txt file which contains paragraphs in English and in Thai.
I wonder how to store it and display it on screen. I plan to display characters in colors. I should be able to check whether user typed correctly.
Question are:
-
So, I think I will use TextAsset (I found it in tutorial.) Am I right? I’m having trouble opened a .txt file and associated it with text anchored on screen please advise.
-
I’d split texts into characters including line breaks. I shoud be able to detect line breaks and give it a method or so, to be able to deal with them when user is at the end of lines. Should I use array, 2d array, or list?
-
I’m not sure whether Unity works with Thai characters. Should I create sprites of Thai characters and call them from array or list?
-
Do I have to put txt file into Resource folder? Where is it? Or I have to create it myself?
Thank you very much.