#So im trying to delete object from the list in foreach loop.
1 messages · Page 1 of 1 (latest)
you can do:
var iteratableList = mainSpawner.mailButtons.ToList(); // creates a copy
```Iterate one, change the other
Is that because if you remove it from the foreach than the number of iterations would change partway through?
Thank you Zenvin i did it your way