how to loop through an array of vectors in C#
- by Robert
Hello everyone,I now have an array of vectors:
static Vector3[] axes = new Vector3[] { Vector3.UnitX, Vector3.UnitY, Vector3.UnitZ };
and I want to loop through it,the code I write is:
for(int i=0;i<axes.Length;i++)
{
do sth. about axes[i];
}
However,it doesnt work and gets into infinite loop,could anyone help?
thx.