Answers for "unity read text file line by line foreach"

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 foreach"

Code answers related to "C"

Browse Popular Code Answers by Language