I can’t seem to get a game object to append to the end of a gameobject array. What am I doing wrong here?
Looking at this it looks like I’m doing it right: http://docs.unity3d.com/ScriptReference/Array.Add.html
I read in another post “Built-in arrays are not resizable and don’t have any Add functions or the like,” so if that’s the case I’m facing how would I go about appending something to the array?
#pragma strict
var newObject : GameObject;
private var objectArray : GameObject[];
function Start () {
objectArray.Add (newObject);
}