Can I have a OnTriggerEnter apply to a specific child?


I would like to know if it’s possible for the function OnTriggerEnter to apply to a specific child of the object or does it absolutely need to be on the object that use it.

if the collider that u use as a trigger is on the child and the script with OnTriggerEnter function as well then you can use it !!..

if it has to be on parent Gameobject for sure then u can attach the script to the parent and from the parent’s OnTriggerEnter you can call a function on that specific child using SendMessage function