I have gameObject that has boxCollider + rigidBody. But that gameObject has children that have its own boxCollider and script to process OnCollisionEnter and OnCollisionExit.
How to make my rigidbody ignore boxColliders of that children but that children can still process collisions in script.
You could change the physics configuration in your project settings to ignore the layer where your children colliders are. Alternatively you could just discard the collisions in your OnCollision methods, if they fit certain parameters, like first check if the collider you collided with has a certain tag (i.e. if(collider.tag == “child”)).