Answers for "unity read text file line by line"

C
2

unity read text file line by line

string path = "Path/names.txt";
     
         string[] lines = System.IO.File.ReadAllLines (path);
 
         c.name = lines[Random.Range(0,lines.Length)];
Posted by: Guest on July-12-2020

Code answers related to "unity read text file line by line"

Code answers related to "C"

Browse Popular Code Answers by Language