Answers for "unity how to get the first word from string"

C#
0

unity how to get the first word from string

string test = "first second";

print(test.Split(new char[] { ' ' })[0]);
print(test.Split(new char[] { ' ' })[1]);
Posted by: Guest on November-15-2020

Code answers related to "unity how to get the first word from string"

C# Answers by Framework

Browse Popular Code Answers by Language