Multiple Collider in one GameObject : how tho know which one has just triggered ?

Hi guys,

I have a character which plays different animations depending which part (head, torso, arms etc.) has been clicked. At first I thought to add multiple Colliders into my character root GameObject, but then I realized that I won’t be able to know which collider just triggered. I didn’t see any way to differentiate (name or whatever) a Collider from another Collider.

Is there a way to do that ? I really would like to avoid creating one child GameObject with Collider for each part of the character, I mean, if it’s possible :wink:

Thank you

When you play animations, you already have a GameObject for every part of the character. Adding colliders to them lets you even have them positioned correctly while an animation is playing.