- Home /
Question by
derrtyones · Oct 01, 2014 at 01:56 PM ·
javascriptarraybox
JS: Display Array contents in a Box
I have an array:
var fruits = new Array("apple","banana","pear","berry");
I also have a box:
GUI.Box(Rect(770,50,250,800),"Fruits: \n _______________________ \n");
How can I get the fruits to show in the box so it looks like this:
Fruits:
____________________
apple
banana
pear
berry
Comment
Don't use the Array class; it's slow and untyped. Use built-in arrays or generic Lists.
Your answer
Follow this Question
Related Questions
array of boxes 2 Answers
JS: Array index not taking array.length as valid int? 2 Answers
Simple Array Problem 1 Answer
Load Prefabs in Array with Javascript 1 Answer
drawing GUI or Instantiate an object to highlight multiple object 2 Answers