unity instantiate gameobject with position code example
Example: instantiate an object at a certain position unity
Instatiate(prefab, new Vector3(posX, posY, posZ), Quaternion.identity);
Instatiate(prefab, new Vector3(posX, posY, posZ), Quaternion.identity);