Good Afternoon,
I’m trying to use a statistics option on my game being that it reads from a txt file and writes to it, what m trying to do now at the moment is to after reading the file to a string is to instantiate a GUIText component for each “line” where each line is atype of block with the number of deaths from the player to it.
How would i be able to instantiate GUITexts lined like a list and a scrollbar to move it up or down in case the content would extend down the screen?
Example:
string[] sr;
streamreader sw=....
....
...
foreach(string s in sr)
GUIText gt=((GUIText) Instantiate(GUIText));
gt.text=s;
Best regards