Quantcast
Viewing latest article 4
Browse Latest Browse All 11

Answer by MortenK84

C#:

String s = "tada";
Debug.Log("The first character of the string is: " + s.Substring(0, 1));

What the substring method does is retrieve a string within the string. The first parameter 0 is the starting index (starting position of the substring), and the number 1 is the amount of characters to grab.


Viewing latest article 4
Browse Latest Browse All 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>