adding collider to a child object (script)

Hi,
how can i add a collider to a specific child.
I can get the transform, is there a way to get the child as a game object so that i can add the collider through script?

That’s very easy. It’s just child.gameObject.