- Home /
ArrayList Loop Through - only new elements accessible?
It looks like each time I loop through an ArrayList, only the new elements are accessible... The iterator seems to skip the previously iterated arraylist elements... How do you traverse an ArrayList?
Comment
You should get all elements every time you iterate the list. If you post your code maybe someone will spot the problem.
It looks like Debug.Log will only print it once when invoked through OnGUI buttons... strange
Could you post your code? You must be doing something wrong.
Your answer
![](https://koobas.hobune.stream/wayback/20220613134115im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Removing all instantiated objects in scene 1 Answer
arraylist to array 1 Answer
Why does it jump every second step in this loop? 2 Answers
Add a Play Next Song And A shuffle Option To Music Player C# 1 Answer
Arraylist vs List,Arraylist vs list 2 Answers