Text, TextAsset, separate characters, Resource folder

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:

  1. 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.

  2. 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?

  3. I’m not sure whether Unity works with Thai characters. Should I create sprites of Thai characters and call them from array or list?

  4. Do I have to put txt file into Resource folder? Where is it? Or I have to create it myself?

Thank you very much.

Make sure you create a Resources folder, and copy your file in that folder, an YES you need to case it to a TextAsset I’m not in front of my PC right now so I cannot post any code for you.

Thank you very much.