unity use object instantiate code example
Example 1: unity instantiate
// You can use the 'Instantiate()' function to clone a GameObject
clone = Instantiate(original);
// You can also set the position, rotation and parent
clone = Instantiate(original, new Vector3(0, 0, 0), Quaternion.identity, cloneParent.transform);
Example 2: untiy instanciate prefab
Instantiate(prefab, new Vector3(i * 2.0F, 0, 0), Quaternion.identity);