get a gameobject position from vector3 array?

Hi, I have an Vector3 typer array, like this: vectorArray = {Vector1, Vector2, Vector3…}. Now, I create a gameObject and I want it transforms as vectorArray----- gameObject’s position get from vectorArray.

Are you asking for something like this :

public class PosFromVec3Array : MonoBehaviour {


    Vector3[] test = { new Vector3(1,1,1), new Vector3(2,2,2) };

	// Use this for initialization
	void Start ()
    {
        this.gameObject.transform.position = test[0];	
	}
}