I’m making a small game for the first time and enjoying it thus far. The only thing that keeps bothering me is that I can’t find a human explanation of what the graphics raycaster does. What’s the blocking mask, what are the blocking objects etc? Should I mask the things I want clicked or the things I don’t want clicked?
As an example I have the following screenshot: http://i.imgur.com/6nkVY7b.png
The overlayCanvas has the pinkish square on the top in it and the button “Button” on the pink square. Nonetheless, the whole bloody canvas is clickable instead of just the button and the pink square. Which means that all interaction seized because the canvas is on a “topLayer” which has its own camera.
The Square+button in the overlayCanvas are on “topLayer” aswell.
But I just want the button and the pink square(and what’s in it) clickable because the game is relying on clicks on the background image.