Array problem, I'm novice

`Hi, I’m trying to make array, I have a transform in game and I want to make array with my prefabs and then when I press button, these prefabs will create as child of the my transform. Please post sample code. Thank you. I tried something but it didn’t work. I was looking at unity scripts, but I don’t understand how can I make what I want.

public GameObject[] videos;
	public int numberOfVideos = 5;

	public string nameOfVideo;

	public GameObject video;

	// Use this for initialization
	void Start () {
		rs = GetComponent<RecordingSys> ();
		videos = new GameObject[numberOfVideos];
	// Update is called once per frame
	void Update () {
		for (int i = 0; i < numberOfVideos; i++) {
			GameObject go = Instantiate (video, new Vector3 ((float)i, 1, 0), Quaternion.identity) as GameObject;
			go.transform.localScale =;
			go.transform.parent = GameObject.Find ("VideoPanel2").transform;
			videos *= go;*
  •  }*

it’s because you’re creating them in Update() - that runs EVERY frame… if you want them to be created at the start, put the code in Start()