I have an array of gameobjects let’s say it is called “myArray”. I also have a specific point in space. Lets just say the point is (5,5,5).
How do I find all the objects that’s position is (5,5,5)?
Thanks.
I have an array of gameobjects let’s say it is called “myArray”. I also have a specific point in space. Lets just say the point is (5,5,5).
How do I find all the objects that’s position is (5,5,5)?
Thanks.
for(var i:int=0;i<myArray.length;i++){
if(myArray*.transform.position==Vector3(5,5,5);*
//do something
}