- Home /
GameObject[] array VS arraylist for Gameobject?
Hi folks, I new in Unity 3d and my requirement is to have dynamic array like in Objective "NSMutableArray" so I want to ask which of one I should use either use GameObject[] or arraylist for GameObject. I just little use to get own knowledge, for arraylist is dynamic but for this I have to type cast every time when I need to fetch element from this like. And GameObject[] don't need type cast but it is not static as far as I know. Kindly guide me where I am wrong and suggest me better. Thanks
Answer by Eric5h5 · Jan 16, 2014 at 02:46 PM
Don't use ArrayList for anything, ever. Use a generic List if you want an array that's resizable.
Your answer
Follow this Question
Related Questions
Cloud recognition in Vuforia 0 Answers
ArrayList declaration 1 Answer
How do I export blender tree model into Unity3D? 2 Answers
Read a sound in unity 3D triggered from an iPad 1 Answer
Load a Level on Touch 1 Answer