how to get first character of a string in unity code example
Example 1: 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]);
Example 2: get the first letter of a string unity
String s = "tada";Debug.Log("The first character of the string is: " + s.Substring(0, 1));