Answers for "unity read line from file"

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 line from file"

Code answers related to "C"

Browse Popular Code Answers by Language