What I try to achieve: Toothbrush should show up wherever the user clicks inside BoxCollider
A
, including space inside BoxCollider
B
What is the intended functionality here? I'm suspecting that you want the toothbrush to display anytime a user clicks within the mouth space?
If so, then one fun way to fix this would be to adjust the ordering of the 'B' objects to be above the 'A' object in the Hierarchy so that they overlay the A collision area. This in turn will allow their interaction to block the interaction of the area defined underneath the collision area define by each 'B' collider.
What we're doing with this methodology is forcing the OnPointerDown event to occur with the 'B' collider before it has a chance to collide with the 'A' collider.
Let me know if that makes sense and feel free to ask follow up questions about the method.
Still not sure if your case is what I think it is, but here's a video of the method i mentioned: Demo Video