Raycast unseen objects

I have a map im trying to make and when I click an object on the map a canvas and a panel comes up infront of buttons that are also canvas’ and Buttons. But I cant seem to get my Layering right because no matter what I do. I always am able to click the buttons in the back through the panel that pops up. I am sure theres a way to fix this within the new UI. Someone mind helping? Thanks :slight_smile:

you only need 1 canvas, and all your buttons go as a child of it. you can also set up.
assign sorting layers on the canvas to keep its visibility correct
and consider bringing your buttons a little closer to your camera. 0.01 in z is enough.

btw raycast issue?

if u want to turn off raycast and “interactivity” with unseen canvas - add new “Canvas Group” component to canvas. (its in Miscellainous) there u can turn on and off “block raycasts” and “interactable” options with script.

ucan make blockCanvas(Canvas myCanvas) and releaseCanvas(Canvas myCanvas) functions and switching canvas whenever you need.

One canvas is a world canvas and the other canvas is a screen space camera I do need 2.

I am not seeing the canvas group under components on the canvas?