High resolution SurfaceGui's instances have broken hitboxes

High resolution SurfaceGui’s seem to have broken hitboxes. This issue will either extend their hitboxes outside of their actual instance or add a deadzone to the actual instance (or both).

This issue also seems to affect the GetGuiObjectsAtPosition method.

Repo place file:
SurfaceGUI_ButtonResolution Hitbox issue.rbxl (65.4 KB)
The place will by default use 10000 PPS, making the button in the middle entirely unclickable. Only at way lower PPS the button will become clickable again. This issue also occurs with CanvasSize.

Thanks for the report! We’ll follow up when we have an update for you.

@XenoDenissboss1 can you provide a video of the behavior? Also, what is the use case for this? Thanks.

Here:


Hovering over them fires the standard MouseEnter and MouseLeave events. As you can see, said events fire either outside of the actual ui instance or well within it. The severity of this issue being determined by the resolution of the entire GUI and position of said ui elements.

Creating interface’s and general gui using SurfaceGui’s strapped to the player’s camera can offer a variety of new effects such as the ability for bloom to actually affect the UI itself along with allowing the UI to be rotated giving off a “3D Dynamic” effect. This usually requires having said SurfaceGui’s really close to the player camera (as to not have it get overlapped by other near-by world objects) with a very small BasePart. Due to the very small size of the part’s involved it is required the usage of high resolutions for said ui (over 4000 PPS would say). Said high resolution ui’s break the hitboxes of ui elements.
I also have a slight hunch this also happens with ScreenGui’s though you would need a very high resolution by default to have this issue to happen. (8k resolution and above).

Hi, it’s a bit late but I’m unable to reproduce this issue. I will close it assuming it was fixed some time in the past. Please let us know if you have other issues, thank you.

No, it’s not fixed
I’m having the same issue

I tested it and you can reproduce the bug with 3 conditions:

  1. The SurfaceGui has a High resolution
  2. The SurfaceGui must be close to the camera
  3. The SurfaceGui part must be small (<0.1 studs) and 0.01 studs in Z axis

I’ll share a rbxl and a video soon

SurfaceGUI_ButtonResolution Hitbox issue.rbxl (72.2 KB)

Thank you, once I take your rbxl and change the Part’s size to (0.65, 0.335, 0.004), I can reproduce the issue now. I have reopened it, and will let you know once I have an update on this.

Hi! This issue should be fixed now. Please let us know if you have further questions.