|
Is it possible? With Javascript? On 2D Platform Game Tutorial I want to make multi targets to the platform mover script rather than just one, so I figured "why not an open array?", thus this question.
(comments are locked)
|
|
You can use arrays like Transform[] and GameObject[], but I don't think there's any easy way to use Array(). This actually solves my question, though it doesn't answer the generic question on the title.
Mar 09 '10 at 09:21 PM
Cawas
I was wondering this too -- I tried adding an array member, but it was only showing Size 0, until I realized that the size was edit-able, duh!
Apr 21 '10 at 04:56 AM
yoyo
(comments are locked)
|
|
I believe what you want can be done with UnityEditor by customizing the inspector pane, but I am posting from my mobile and can not provide you with code atm. http://unity3d.com/support/documentation/Components/gui-ExtendingEditor.html I won't look into this now, but this is actually a better more generic way of answering the question, if it works.
Mar 09 '10 at 09:22 PM
Cawas
(comments are locked)
|
