Question : unity how to get the first word from string
Answered by : ryan-garrett
string test = "first second";
print(test.Split(new char[] { ' ' })[0]);
print(test.Split(new char[] { ' ' })[1]);
Source : | Last Update : Sun, 22 Nov 20
Answered by : ryan-garrett
string test = "first second";
print(test.Split(new char[] { ' ' })[0]);
print(test.Split(new char[] { ' ' })[1]);
Source : | Last Update : Sun, 22 Nov 20