UI 4.6 Overlapping Buttons

Hi there,

I looked around the forum and I couldn’t find an answer to my question. When I have two overlapped buttons (in my case, one as a child of a canvas in world space and another in screen space-overlay) and I try to click on the one in screen space, it seems that the click goes through and triggers the one in world space.

It doesn’t matter if I put the screen space canvas before or after the world space canvas in the hierarchy, always the one in the back is triggered. Adding a Canvas Group component to block raycasts also doesn’t solve the problem.

I would like to know if there’s another way to fix this other than disabling all the world space buttons when a screen space button shows up.

Thanks!

there is a bug in 4.6.1 you can either go to 4.6.1p1 or try pulling https://bitbucket.org/philip_cosgrave/philunity-uibugfixes/branch/eventsystemrewrite

Hi there,

I’m running into similar issues, I have one “MainCanvas” displaying the menu and some popups (ScreenSpace - Overlay, Sort Order: 2) and some Canvases attached to objects in my scene (WorldSpace, Sorting Layer: Default, Order in Layer: -1). One of the canvases attached to objects is in the center of the screen. If an popup is overlaying this element, I cannot interact with the popup, but the click is firing a button on the world space canvas behind the popup.

How can I fix this? I’m running Unity 4.6.1f1 on Mac OS X.

Thanks!

upgrade as 4.6.1 has some issues. 4.6.2p1 is out try that one