unity read text file line by line

Solutions on MaxInterview for unity read text file line by line by the best coders in the world

showing results for - "unity read text file line by line"
Leonardo
18 Jul 2020
1         string path = "Path/names.txt";
2     
3         string[] lines = System.IO.File.ReadAllLines (path);
4 
5         c.name = lines[Random.Range(0,lines.Length)];
similar questions
queries leading to this page
unity read text file line by line