Array.Push() for Vector3[] or how to add items to Vector3 array without knowing index

How do you add an item (pos) to a Vector3[] array - it seems Array.push() and others do not work on Vector3[]'s

Push just doesn't work on .Net arrays in general. Your options are either a list or create a new array.

List option:

import System.Collections.Generic;

var positions = List.<Vector3>();
function AddItem (var item : Vector3) {
     positions.Add(item);
}

Resizing the .Net Array (its a pain comparatively):

var positions : Vector3[];

function AddItem (var item : Vector3) : Vector3[] {
    var temp : Vector3[] = new Vector3[positions.Length + 1];
    temp[temp.Length - 1] = item;
    for(var i : int = 0; i < positions.Length; i++) {
         temp _= positions*;*_
 _*}*_
_*}*_
_*```*_
_*<p>or</p>*_
_*```*_
 _*Array.Resize(ref positions, positions.Length + 1);*_
 _*positions[positions.Length] = item;*_
_*```*_
_*<p>If you need a dynamically resized array then you should almost always choose a list.  The exception is when you are developing on some platform that doesn't support generics.</p>*_