Question : unity string split
Answered by : arnaud-4cdxlp3wr1wt
string example = "Give_me_a_like_please";
string[] splitArray = example.Split(char.Parse("_")); //return one word for each string in the array
//here, splitArray[0] = Give; splitArray[1] = me etc...
for(int i = 0; i < splitArray.Lenght; i++)
{ Debug.Log(splitArray[i]);
}
//This shows in the console "Give" "me" "a" "like" "please"
Source : | Last Update : Fri, 10 Apr 20
Question : unity string split
Answered by : super-serval-g4f2ewlovpjw
articleDataString.Split(new string[] { "|NEXT|" }, StringSplitOptions.None);
Source : https://devarama.com/questions/49611257/Need-help-splitting-a-data-string-in-Unity | Last Update : Tue, 01 Mar 22