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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -