- Home /
How to make an Event Trigger -ignore- certain UI
Basically, I have two UI elements in my scene and I am trying to detect when the cursor is above on of them. The problem is that when they line up the cursor is above both but only "thinks" its above the top one. A succesful workaround in my case would be ignoring the top UI element. That's my question , how do i do that? there are no box-colliders to simply disable so how can i "disable/ignore" the element without dissabling it because i want it visible in the scene. I dont think i have to upload any of my code its irrelevant but let me know if you need to take a look at it if that helps!
"UI Element" is pretty broad. If it's an Image component, just uncheck 'Raycast Target'. If it's part of a more complex setup, move the components to the 'Ignore Raycast' Layer.
Answer by denisb · Oct 04, 2016 at 06:49 PM
you can add a Canvas Group component on your object, and uncheck the interactable and blocks raycast option
Your answer
