I want to spawn an Item ONCE within 10 different empty game objects with different positions ie spawning a singular item at ONE of the points/game objects. i have not found anything online or even on here about spawning a singular item within different set positions. I would like some help and i have less than a few weeks to finish my project
1 Answer
1You can try
Transform spawnPoint = (Random.Range(0, 10);
for(int i = 0; i < 10; i++)
{
GameObject go = (GameObject)Instantiate(myGameObject, spawnPoint, Quaternion.identity);
}