I would like to take data from a text file like below and turn each group of names for a list that I can that assign random names from please help or point me in the right direction Code (CSharp): Boys:("Michael","John", "Joseph", "Robert", "Jacob" , "Derrick", "Justin", "Corey", "Malcolm"), Girls: ("Erica", "Christine", "Alexandria", "Stacey","LaTasha", "Jessica","LaTonya", "Candice") Dogs:("Max", "Charlie", "Cooper", "Buddy", "Jack",
Text Asset and something like https://docs.unity3d.com/ScriptReference/JsonUtility.FromJson.html If you can edit the content of the text file. If not, just read up and parse if it's needed. Although it is always more performant if you write an editor tool to do it and store the data inside Unity in ScriptableObject or generated CS file.
I'm not seeing very many (any really)examples on how to make it a list is there any Json utility list function? Or is it just an integersts floats and strings
string.Split to split the data into an array. string.Substring to break off parts of the string you don't care about. Turn it into a List by creating the List and using AddRange, or using Linq's ToList function on the array.
Or you can just put them in separate text files. Separate each name by a new line. Code (CSharp): public string loadWordListPath; loadTermList = new List<string>(); var stream = new StreamReader(loadWordListPath); while (!stream.EndOfStream) loadTermList.Add(stream.ReadLine());