Calling "OnTriggerEnter" when a parent object has a rigidbody
I have object Child with a trigger, which is a child of object Parent.There's a rigidbody component on Parent, which means I have to put the script with "OnTriggerEnter" on Parent. However, when I have multiple Child objects with triggers, I can't figure out a way for me to find out which of my children called the "OnTriggerEnter"; I can only see the "other" object (which is also a child of Parent).
Is there a way to call OnTriggerEnter on the child (preferred) or to see both objects involved?
Comment
Your answer
Follow this Question
Related Questions
OnTriggerEnter 1 Answer
OnTriggerEnter not firing 2 Answers
OnTrigerEnter not working 2 Answers
C# OnTriggerEnter Issue 3 Answers
Enemy Trigger Colliders are triggering my player's trigger collider. Why? 1 Answer