|
Hi I just learn about Arrays... After run under UNITY and clicking on the Button Array doesn't appear. Can anyone tell me what is wrong with code below?
(comments are locked)
|
|
The function ShowArray is only called the frame when the button was pressed. Also, your Start function has no effect. Try this instead: Should be
Jul 03 '12 at 11:26 PM
Eric5h5
thanks Mortoc ;) @Eric5h5 - is there any semantic diffirence between length and Length? it works anyway.
Jul 04 '12 at 10:11 PM
erghard
That's weird, in Mono/.NET it has to be "Length". The Javascript Array class uses "length". I guess they made "length" work with .NET arrays in Unityscript.
Jul 04 '12 at 11:08 PM
Eric5h5
(comments are locked)
|
