grouping Textures

Hello people
I am turning the visibility of objects on and off with MeshRendering scripts in C#

Everything is good but sometimes I have a slew of things and would rather group them (dragging on top of each other hierarchy) in to trigger the visibility .
However, the mesh renderer fails to work for parent child.
How would you handle?

Thanks for your time


MeshRenderer childrenRenderers;
childrenRenderers = gameObject.GetComponentsInChildren.();
foreach (MeshRenderer rendererCurrent in childrenRenderers) {
if(rendererCurrent.gameObject != gameObject) {
rendererCurrent.enabled = false;