Do Child Objects Trigger Parent Objects?

Short and sweet question. I’ve tried to look it up but I can’t find it any where.

if you got this script

function OnTriggerEnter(){

on a parent object, and the child is triggered, will the parents script respond?

are there any places to find this information out.

I think that might be whats going on with my current code but i can’t be sure its not something else.

If you have Colliders in parent and child objects, you could prevent their collider from undesired triggering each other by using “IsChildOf” function of their Transform component.See this snippet code from unity documentation:

function OnTriggerEnter (col : Collider) {
    // Ignore trigger events if between this collider and colliders in children
    // i.e. when you have a complex character with multiple triggers colliders.
    if (col.transform.IsChildOf(transform))
    print("Do something here");

where transform refer to Transform component of parent object.