ArrayList Class

I’m trying to use the ArrayList Class which seems to be built into javascript but some of the functions don’t seem to be working. I understand Unity has its own library for classes specific to Unity but I am wondering where I can find a complete API for other classes that can also be used.

ArrayList is from Mono/.NET; Array is Javascript-specific. However you should use generic Lists instead. The syntax in JS is slightly different; in C# do you “foo = new List();”, and in JS you do “foo = new List.();”.

–Eric

Are all the .NET classes available in Unity JavaScript? I was using this class, what benefit would it be to create a generic list?

Yes. See here.

–Eric