Answer the question
In order to leave comments, you need to log in
Why does List.Count return the wrong number of elements?
Positions.Add(position);
Debug.Log(Positions.Count);
for (int i = 0; i < Positions.Count; i++)
{
Debug.Log(Positions.Count);
Debug.Log(Positions[i]);
}
Answer the question
In order to leave comments, you need to log in
So the method is called twice => there are two elements in the sheet.not true if you have Positions defined globally and not locally. If defined locally, there will be 1 element each time.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question