# OnTriggerEnter : is it called in both collider object?

I've 2 object: a Player and a Bonus object.

In both script I've "OnTriggerEnter" script.

In Player OnTrigger I: Take Bonus value and add it to my Player (health, point, ammo)

In Bonus OnTrigger I: Play audio (when take it), Play Particle System and so on...

But, it seems it's called only Player's OnTriggerEnter ... Why ?

In Unity, if I have OnCollision/OnTrigger enter in both object, which event is called ? Both ?

Thanks

• please post the settings of each collider and rigidbody for your test – Stephan Dec 11 '17 at 21:24
• Please check if both colliders have "IS TRIGGER" flag checked. – LebRon Dec 12 '17 at 8:18
• Is there a rigidbody, is it the only rigidbody in that hierarchy? – Nikaas Dec 12 '17 at 8:55
• Its been a long time but as far as I remember OnCollisionEnter or OnTriggerEnter will be executed when Rigidbody is attached to that object. – Hamza Hasan Dec 12 '17 at 19:23

When that's the case, the OnTriggerEnter is called on all game objects involved if you have the OnTriggerEnter() function written in the scripts attached to them.