Weird issue with scaling

Hello! I’m going through an unusual/weird issue that I haven’t faced before. I’m using a ViewportFrame to render the player’s current character. To match the background (which is a rhombus shape), I rotated the ViewportFrame by 45 degrees, and everything seemed to work just fine. However, during testing, I noticed scaling problems on different devices. I’ve tried various solutions, including UIAspectRatio and AnchorPoint, but the issue persists. I’ll attach some examples below.

image
image

The white image is the ViewportFrame, just so you can see how it’s structured.
image

And this is how its size becomes on different devices.
image

Has anyone gone through anything like that before? Is there a fix for this?

1 Like

My guess is that you arent using scale, and if you are using it, Its probably best to put the viewport inside of the colorful image thingy.
I would also recommend using a UiAspectRatio so it retains its square shape

1 Like

Thank you! I had to work around some other stuff, but the main solution was put the viewport inside the frame and apply the aspect ratio plus anchor point.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.