Hi,
How does one get a length of a string so you can use that result to drive a loop?
In web based JS you just do “someString.length”.
Any ideas?
Cheers.
Hi,
How does one get a length of a string so you can use that result to drive a loop?
In web based JS you just do “someString.length”.
Any ideas?
Cheers.
Try string.Length (uppercase ‘L’). Unity uses .NET string class, it is documented on msdn.
thanks! guess one shouldn’t post questions at the end of the day on a Friday. I can’t believe I didn’t try a capital L of all the things I did try! ![]()
cheers.
Haha, don’t sweat it, you’re not alone!
I did this same thing (forgetting to try a capital L) only recently… thankfully we have a helpful community here ![]()