OnTriggerEnter on child gives returns name child

When i use OnTriggerEnter function on a parent of a trigger. It returns the name of the trigger object.

function OnTriggerEnter(other: Collider){
	if(isSelected){
	Debug.Log("TRUSS SCRIPT: source "+ transform.name+"  ontrigger "+other.name);
	  
	}
}

The trigger is a child object. And other.name gives me the name of the child. I don’t need the name of the child object i need the name of the object where the child collides with.

Hahah well yeah that happens, This is called Compound Colliders.

Anyways, to solve this thing, Add a rigidbody to your child object, make it kinematic and make sure collision type is “Discrete”.
That should fix you up.

You should check out the link for more detailed info.