I get an error ('RemoveAt' is not a member of (UnityEngine.GameObject) if I do this:
What is the syntax to add or remove a GameObject from a array of GameObjects?
You're getting this error because there are more than one kind of array which you can use in Unity, and they each have different functions and features.
There are built-in arrays, which are fixed-size, and don't have functions which would change their length (like Add, Remove). Built-in arrays are declared using square brackets.
(there are also many other array-like types available to use, but that's a different topic!)
answered May 10 '10 at 04:16 PM
That's not possible, but you can convert built-in arrays to dynamic arrays like this:
and back to static arrays like this:
answered May 10 '10 at 04:06 PM