UISizeConstraint object not scaling when a ScreenGui is copied into PlayerGui

Hi,
When a ScreenGui containing a UISizeConstraint is copied into a player’s PlayerGui it does not scale imediataly resulting in a visual bug.

This is my hierarchy, maybe I’m doing this wrong:
Screenshot_3

The issue is that the main Frame named “BoundFrame” is bigger than expected, which looks like this:

We can fix the issue if we resize the game window, it seems to update the UISizeConstraint object, and it acts as expected.

Expected behavior

I expect the UISizeConstraint to update imediately after being copied and shown to the player, so it scales the UI properly whatever the device the player is using (from smartphones to TVs).

2 Likes

Thank you for reporting this bug! Is it possible to get a repro rbxl file?

2 Likes

Of course, all you have to do to repro is simply open the file, the UI is going to be bugged.

Once you resize the properties panel for exemple, the 3D viewport size is going to be scaled and the issue is solved for the session.

You can play solo while in th studio, and the UISizeConstraint object will be bugged. You need to be update the UISizeConstraint again by scaling the 3D viewport.

The bug occurs on a live server aswell, and you have to change the game window scale to fix it.

We managed to get a workaround by forcing the UISizeConstraint max size values after it gets duplicated into a player gui folder.

UISizeConstraint_Bug.rbxl (53.8 KB)

1 Like

Thank you! We will file this bug with the ui team and update this thread when it is fixed

4 Likes

Hi @Sofloann , we just rolled out the fix for the issue, please help verify on your end and let us know if it’s still happening. Thank you!

2 Likes