HI, I have an game object with multiples BoxCollider attached to it, is there a way to get all the BoxCollider to an array so that I could modify their value individually ?
Here is what you can do:
BoxCollider box_colliders;
void Start(){
box_colliders = GetComponents<BoxCollider>();
foreach(BoxCollider boxCollider in box_colliders){
//Perform task for individual box collider
}
}