I’m trying to use a single camera to render uGUI in screen space camera and also some 3D content.
The problem is that the PhysicsRaycaster I added to this camera seems to be blocked by the canvas’ GraphicRaycaster. If the mouse is over canvas content the PhysicsRaycaster won’t dispatch.
Is it supposed to work this way? I expected each raycaster to work independently.
Did you ever find out how to fix this, I currently have the same problem that the HUD canvas GraphicRaycaster is blocking the PhysicsRaycaster of the 3D scene and I can’t find a solution…
Ah one more thing to add, the HUD canvas has clickable objects as buttons as well
I believe it used to work this way, and then was changed somewhat recently (the last two or three months).
You can selectively use CanvasGroups to tell a hierarchy of GUIElements that it will either block or allow raycasts to pass through them. I believe this is the solution I ended up going with while dragging GUIElements.