So I am trying to do
myArray.Push(Vector3(10,2,6));
and then I am trying to get the value out of that by going
myArray[0].x
but that doesn’t work.
How do I get the x value off the Vector3 that I pushed into the array?
So I am trying to do
myArray.Push(Vector3(10,2,6));
and then I am trying to get the value out of that by going
myArray[0].x
but that doesn’t work.
How do I get the x value off the Vector3 that I pushed into the array?
Actually that does work if you use dynamic typing, so I guess you must be using #pragma strict. It needs to be cast to a Vector3:
var arrayElement : Vector3 = myArray[0];
–Eric
thank you