Multiple colliders on one object problem

Hi guys, I have the problem with two colliders on the same object and with their OnTriggerEnter and OnTriggerExit event.

First of all here is the pic:

The problem is in that intersection part.
The moment my object collides (OnTriggerEnter) on the right side with the bigger collider and keeps moving to the left everything is fine until the end of the bigger collider (even smaller collider is inside the bigger one).

My object triggers OnTriggerExit at the end of the bigger collider but does not trigger OnTriggerEnter when “touches” smaller one. And in that moment it looks like my object doesnt collide with any collider.

So my question is, how to achieve that my object knows it is in the same GameObject even if I am doing transition between smaller and bigger collider.

I hope i explained well. Ask me if is something is unclear.

Regards

bump

Is OnTriggerStay out of the question?

I have not tested, but what if you put one of the colliders on a child gameobject? If that does nothing then you might habe to have seperate rigidbodies for the colliders to get separate triggerenter calls.

The way I think the oncollision and ontriggers work is based on the rigidbody and not the actuall colliders. So to the rigidbody, those two separate colliders are combined, so when one collides and calls ontriggerenter, ontriggerenter wont be called again for any other collider on that rigidbody.

If your object is not a rigidbody, then would making one of the objects a child of the other with and ontriggerenter script component on both of them make things work?

I will try this and get back to you. Thank you.