I use a normal and a world space Canvas. But it seems my normal Canvas blocks world space buttons. How can I change this? I tried setting the world space buttons to my own layers but that had no effect. Also I tried a lot else but I couldn’t notice any effect. When I disable my normal Canvas, it works.
With normal canvas I mean a canvas which has not been set to render mode World Space. The normal canvas which, once aligned, will always fit your screen, no matter what the camera does.
With blocking I mean that I have the impression that clicks on the world space buttons are blocked by the non-world-space canvas (dont have the proper expression for that right now). Once I setActive(false) my canvas, I can click my world space buttons.
Doesnt this depend on the resolution as well? In my ingame view, there is no element ontop my button. My buttons are kind of centered while my overlay canvas aggregates at the edges.
Remove the GraphicRaycaster on the canvas you don’t want to receive events (or, if you only want to disable them for certain elements in that canvas, add a CanvasGroup component to those and disable “Interactable”/“Blocks Raycasts”).
I had the same problem but I cannot disable overlay canvas raycasting because i need it for joystick controller. Is there any other way that makes world canvas interact before overlay canvas interacts?
If anyone is still having this issue: If you have a panel (visible or invisible or other image covering your whole screen, make sure that “raycast target” is set to false on that component. This is generally good optimization advice.