Quantcast
Channel: Answers by "brunopava"
Viewing all articles
Browse latest Browse all 64

Answer by brunopava

$
0
0
You can use Split. ex: string allCodes = "G10,M8,X5,Y5"; // this splits the string using comma as a parameter. // every index on the array will now have a code in it. // note that this method requires you to use a single ' instead of " string[] codes = allCodes.Split(','); // prints on the screen all the codes foreach(string current in codes) { Debug.Log(current); }

Viewing all articles
Browse latest Browse all 64

Trending Articles



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