- Home /
Make element recieve camera raycast, but not block it
Hello everybody! Will be nice if you help me with this little problem. I have a scroll inside wich I have buttons. This scroll appears when you do some actions and stays active for 5 seconds, then it hides. So I have a timer, for scroll visibility, and I want to stop this timer, when user interacts somehow with my scroll, drags it or presses it. There is no problem, when I want to catch drag event, caus scroll already has it inside, but the problem appears, when I want to catch touch event. I tried to implement IPointerDownHandler interface and add it to scroll content. But the buttons inside my scroll block raycast, so this implementation works only when I click in space between buttons. My question is: can I somehow make UI element recieve camera raycast, but not block it, so that the element behind them can also reciece it?
Your answer
![](https://koobas.hobune.stream/wayback/20220612202447im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Different between IPointerClickHandler.OnPointerClick and MonoBehaviour.OnMouseDown 1 Answer
XR UIHelpers Eventsystem ray is coming out of my main camera rig instead of my hands 0 Answers
Allow Click Through some UI Elements 1 Answer
IsPointOverGameObject() not working as intended!!! 2 Answers
Unity UI - Select with Raycast (Screenspace - Camera) 0 Answers