Hi guys!
I need to remove element from list while I’m iterating it. I have an array in array, and I need to exclude element not to use it in the next iteration. I came from Java, and there we have an Iterator object, which is able to do this job. Does Unity have something similar?
Iterate backwards through the list with a (for int i = list.Count … loop, and use RemoveAt(i).