//renderer is attached to meshes inside gameobject //pass true in order to also include disabled or inactive child Renderer foreach(var rend in GetComponentsInChildren<Renderer>(true)) rend.material.color = Color.red;