- Home /
Question by
Derf321 · Sep 08, 2015 at 01:54 AM ·
uicanvasraycasting
How to prioritize Raycast collisions over Trigger Events?
I have a UI overlaying my in-game Level Editor (2D), but I'm having trouble picking up items behind the UI elements. The UI elements are Trigger Events, and the "picking up" action uses Raycasting. I've tried Physics > Uncheck "Raycasts Hit Triggers", disabling collisions in the collision matrix, and putting a CanvasGroup on the UI's parent and setting it to Interactable and Ignore Raycasts. Any idea how to get this working?
Comment
Answer by sodrix · Sep 08, 2015 at 09:29 AM
You can use keys for show or not show the UI elements? Can you testing with Little Button in screen to show bar with buttons.
That's a good idea. If I don't find a way to get it working how I want, I'll do that.