Canvases are interfering, what do I do?

I have multiple Canvases in one scene that go back and forth via buttons. The problem is that the buttons on on them are clickable on other canvases. The spot where a button would be on one canvas can be clicked on another canvas. I have tried for several days now to fix this issue and my sanity is slowly draining. It seems like it would be a simple fix but I can’t figure it out. Ordering them in layers doesn’t work since they go to each other with “back” buttons. Any ideas? I can’t find any YouTube tutorials about this or any threads on the internet that are quite the same. Any scripts I’ve tried just turn off the buttons for all the canvases instead of just one.

I think perhaps your issue is that you have Graphic Raycasters on multiple canvases grabbing the events?

You could probably make sure only one GraphicRaycaster is active on the canvas you want…

I’ve never done that setup: I usually have sub-panels under a single Canvas get moved around for a menuing system.

Thanks for the help again, I played with the Graphic Raycasters and again it seems it would only work in a single file system without a back button, like layers. I tried to use the raycaster mask and it didn’t do anything.

What does this exactly mean? Do you hide the “other canvases”? Or just trying to put on top of each other? Are you hiding them? If yes, how? Etc… Could you please elaborate?

The canvases that are “hidden” should be completely deactivated. If you set the canvas’ root object as not active instead of just putting another canvas on top of it, you should be good.

And alternative is to give both canvases a canvas parent. Then they know about each other and I believe click events should be blocked.

FYI: This thread is basically a duplicate of this thread .