using UnityEngine;
using System.IO;
using TMPro;
using System;
public class TextUI : MonoBehaviour
{
public TextMeshProUGUI TextMP;
void Start()
{
StreamReader sr = new StreamReader(@"C:\Users\Professional\Dropbox\SD\text.txt");
string line = "";
int counter = 0;
while ((line = sr.ReadLine()) != null)
{
counter++;
TextMP.text += counter + line + Environment.NewLine;
}
void Update()
{
}
}
}