Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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)];
 
PREVIOUS NEXT
Tagged: #unity #read #text #file #line #line
ADD COMMENT
Topic
Name
8+4 =