Can I get examples of how to do this? Or links to Script References?
If you are talking about prefabs, you can use the Instantiate method sort of like this:
public GameObject[] MyObjects;
public void SpawnList()
{
foreach (var spawnObject in MyObjects)
{
GameObject instanceObject = Instantiate(spawnObject, spawnObject.position, spawnObject.rotation) as GameObject;
// Do what you want with the instanceObject, as it will go out of scope at the brace below
}
}
You should be able to assign the public field in the inspector or through code.