Is it possible to use the List<> class in iOS?
What I want to do is have a List that gameObjects are added to and removed from at runtime.
Afaik such a thing can only be done through Lists.
If the use of Lists is not possible in iOS, how would I do such a thing?
With ArrayLists maybe? I've read in more than one places that they should be avoided.
asked Jan 18 '11 at 10:24 PM
You can use List just fine on iOS, in both c# and js.
You need using System.Collections.Generic; for c# and import System.Collections.Generic; for js, at the top of the file.
For js, you'll need to use List. instead of List like c#
answered Jan 18 '11 at 10:28 PM