unity3d - fAWEFwefWEFSDFSDFASFASEFAWEFWEF -
this function
for (i = 0; <= array.length; i++) { if (array[i].transform.position = 0) array.removeat(i); print(“removed element: “ + array[i].name); else if (array[i].transform.position > 0) array[i].transform.forward = vector3(1,0,0); }
please me possible.
you can't compare vector 0 needs this
if(myobject.transform.position==vector3.zero)
and removing things i'd suggest include system.collections.generic lib use listarray can use array.removeat(index);
Comments
Post a Comment