Hey i have a list of GameObjects that i want to spawn in the scene with Instantiate. Here is the trick tho: I want to loop through the GameObject list and spawn each element based on the size of the list, then it has done its job and should stop looping. It will go through each index, from lowest to highest in the list.
Is there a way to end a foreach loop once a certain criteria has been passed? While i need to count on a int everytime i instantiate a object and have a while loop that loops until that int has reached a certain number?
Thanks