Handle Overlapping Buttons Properly

GUI events are being fired for elements that are behind other elements.

Only the front element should fire for any given pixel coord.

I’m going to have to do my own mouse picking to fix this. :sick:

BadButtons.gif

Actually if someone could move this to bugs that would be great. Definitely a bug.

UPDATE: I have just learned that ZIndex is clamped to be between 1 and 10. This is causing the ZIndex order bug in my first animation and needs to be fixed. There is no way that I can hack around it except for using SurfaceGuis on parts and arranging my cards in 3D space.

1 Like

Does this happen for GUIs that are not rotated?

StillBad.gif

You betcha.

This is the default button highlighting. I’m not doing anything wrong.

I did tinker with the ZIndex to make them sort correctly because that is broken too.

They are maybe the same issue. GUI Objects Should Calculate ZIndex Relative to their Parent

Fix already in progress :sunglasses:

10 Likes

:dolphin:

1 Like