|
I am trying to declare a public multidimensional array of GameObjects(Using JavaScript not c#) that I can access through the editor. However it would appear that only single dimension arrays are usable through the property inspector. can anyone please help me out with this i know it is easily possible with c# but i want to know how it can be achieved using javascript. Thanks in Advance
(comments are locked)
|

anyone looking for the c# code for the same problem http://forum.unity3d.com/threads/54707-2D-Arrays-in-C
You can't use multidimensional arrays in the inspector by default. I could show you how to do something which can be used like a multidimensional array in code, but which can be accessed properly in the inspector, but I only know how to do that in C#, and you've forbidden me from doing that. Sorry!
well i have kept that as a last option if i dont get any solution,because my entire project is in java scripts and i dont want to mix it with c# scripts...i know it sounds a bit silly but i always try to complete the entire project using just one language, except for the plugins i always use c# for them....
@syclamoth : thanks for your help i know it is very easily possible with c#,but i am still trying to do it with javascript....if i don't get any solution then i will have to go by your way(c# rules)....
I agree that it's a bad idea to mix the two languages (causes a lot of problems). It's a shame I can't help you here, but you'll have to wait for one of the resident JS experts to arrive.