Search Unity

looping through array to find gameobjects

Discussion in 'Scripting' started by 2dgamemania, Jul 2, 2015.

  1. 2dgamemania

    2dgamemania

    Joined:
    Apr 30, 2014
    Posts:
    153
    Hi,

    I was wondering if someone could give me an example of how to create an array and run through a loop to find the current box colliders on an object and be able to change them to false or true, struggled to find a solution, in javascript.

    Thanks
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201