asked Feb 22 '10 at 06:14 PM
This question has been moot since Unity 3.2. In fact you can do
with no problem.
answered Nov 30 '11 at 08:09 AM
you can define a function for each type of use reflection to create a generic method. generics themselves are not supported in js so you can not simply write
i mean you can write but in js you can not write
you can make a generic method using typeof operator and system.type class and ... remember if your array is an array of a reference type (a class) then you should populate all elements before returning it.
You can just use this:
And it can be accesed with
YourArrayHere[First dimension index][Second dimension index]
It may be long.. but this is the way i do it :)