- Home /
Creating multidimensional string array
Hi,
is it possible to declare a twodimensional array of strings in javascript?
I want to get something like public var text : String[3,3];
to create a field of 3 by 3 visible in the inspector, just to type in words easily.
Answer by Eric5h5 · Jul 30, 2012 at 12:53 AM
That code is correct, but Unity doesn't have any support for multidimensional arrays being visible in the inspector. You could write a custom inspector if you really need this.
Your answer
![](https://koobas.hobune.stream/wayback/20220613074904im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Character at index of string? Finding which character is at an index like in Javascript charAt 1 Answer
get all text between two chars (js) 1 Answer
How do you display a saved name on the screen? 2 Answers
More like a bulletin than chat box 0 Answers
Javascript/Unityscript or c# String obfuscator ... 2 Answers