I have a big collider in the scene with a script attached, this script derives IPointerDownHandler, IPointerUpHandler, IPointerExitHandler, which can be clicked and reacting to the input.
Now I want to set a world space canvas, with a button in it. And when the button stay out of the collider, it works fine, but when the button stay in the collider, the input actions like mouse or touch screen are only responsed by the collider, the button has no response to the input.
The canvas is in the UI layer and sorting layer, the collider is in anonther sorting layer below it. The z position of the canvas is above all others. I also tried canvas group to block raycasts, but it doesn’t solve the issue.
How to solve this?