Answers for "get the first letter of a string unity"

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
0

get the first letter of a string unity

String s = "tada";Debug.Log("The first character of the string is: " + s.Substring(0, 1));
Posted by: Guest on May-11-2021

Code answers related to "get the first letter of a string unity"

Browse Popular Code Answers by Language