In Unity3D I am reading a textfile with information on nodes and its connections.
However it seems that ALL duplicates are removed automatically!
for (int j = 0; j < tokens.Length; j++)
{
Debug.Log(tokens[j]);
} }
Results in console:
Node,Node2,Node2,Lamp,Lamp,Node1,Node3,Node4 // string text
Node
Node2
Lamp
Node1
Node3
Node4
Thus it seems that it skips duplicates, when looping over the array.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…