|
hi everyone.. here's my problem, how can i make the letters appear in a GUI based on a word? example : i got a word BOOK, and i want the LETTERS to be SPELT and appear as INDIVIDUALS on each GUI boxes.. so.. by the word BOOK <- from array it turns to be [B] [O] [O] [K] <- to GUI.Box any help is appreciated... and many thanks to those who helped with this... thanks..
(comments are locked)
|
|
Try something like this: You know, since strings are basically arrays.
May 17 '12 at 06:27 AM
syclamoth
oo... can you please explain on how the code works.. or.. can you post a sample code..?? either way.. thanks..
May 17 '12 at 06:32 AM
zerox911
That was sample code. Or did you need JavaScript? You didn't specify, so I posted in C#, as is my preference.
May 17 '12 at 10:14 AM
syclamoth
so as in java script... its like : for( var i : int = 0 ; i < wordString.Length; i++){ GUILayout.Box(wordString[i]); } am i right?? k.. the script worked.. only that when i put in the word BALL or some other word to the wordString... it came out BALL as one word... but i want it to be like this B_A_L_L ... spelling out the word... can it be done??
May 18 '12 at 02:18 AM
zerox911
Yes, that's right- did it all come out as a single box, or in seperate boxes? You can always intersperse them with
May 18 '12 at 02:38 AM
syclamoth
(comments are locked)
|
