Problem with gameObject Array

Hi there!

I am trying to disable gameobject and its children that I have defined in inspector. It seems that I am (again) doing it wrong, but I cant figure how I should do this.


 var BigIcons : GameObject[];
 
 function Start(){
 BigIcons[2].SetActiveRecursively(false);
 }

Any ideas how I should do this?

There’s nothing wrong with that code; it works as expected.