GameObject [] in Unity
<pre><code>    for (int x = 0; x &lt; mapLength; x++)
    {
        var instantiateMap = new Vector3(x * 2, 0, 1);
        GameObject[] cubeObjectClones = Instantiate(cubeObject, instantiateMap, Quaternion.identity) as GameObject;
        cubeObjectClones[x].transform.parent = transform;
    }
</code></pre>

<p>Cannot implicitly convert type <code>UnityEngine.GameObject' to</code>UnityEngine.GameObject[]'</p>

<p>Can some explain how I can fix this error?</p>