Instantiate prefabs at different position

hi guys.
i have an array containing 3 different prefabs,
and each prefab have its own position. Right now i could only instantiate them at one position. I want to know is there anyway i could set them at a specific position?
like [o] at new vector3(0,0,0)
[1] at new vector3(1,1,1)
Thanks in advance!

ps. this is my code.
public GameObject drops;
for (int i = 0; i < drops.Length; i ++) {


_ Instantiate(drops*,transform.position, transform.rotation);_
yield return new WaitForSeconds(waitTime);_

GameObject drop Instantiate(drops*,transform.position, transform.rotation) as GameObject;*
drop[0].transform.position = new vector3(1,1,1);
I THINK this should work

When instantiating you can specify the position with the second argument of the function :


Instantiate(yourPrefab, thePosition, theRotation);


You’re actually already doing it but you’re probably not moving the GameObject which has this script (transform.position refer to the position of that GameObject).

See for more informations : Instantiate Documentation