Hello. I have a Billboard Gui that has its Size set on scale (no offset) and has a generic part as an Adornee. I used Roundify from Stelrex uiDesign plugin to create a round corner background for the gui. My problem is the corners don’t keep their “scale” (not sure if this is the correct term for it, but I show my problem in a gif below) when the camera zoom out. In the extreme, if you zoom out far enough, the round background turns into a circle. Is this the expected behavior for a sliced image? I expected to have a round corner square image independent of the camera zoom. The GIF is an exaggerated version, but this effect also happens in my game when I zoom out as a player. To have something to compare to, I changed the camera zoom in several popular games when similar guis were open and their corners don’t seem to change at all.
https://gyazo.com/512627bee55c80facee96c95857f09c9
Example.rbxl (23.4 KB) (A baseplate with a part with the mentioned gui)
1 Like
This is because the roundify plugin relies on rounding the corners based on pixels and not scale because slicing itself is pixel-based. The size property has no effect on slicing whatsoever. When you zoom out, the pixel-based rounding prevents the corners from adjusting their size.
My recommendation is using UICorner which supports scale rounding:

See, you can set the corner radius to scale, offset, or both, which is neat.
And yes, the only caution against this is excessive use of mouse events with UICorners, which is expensive. But it should be long before you reach that point, and it shouldn’t matter if you are just using it on inactive objects (that don’t detect mouse events).
3 Likes
Alright, TheCarbyneUniverse I appreciate the explanation and I appreciate even more the recommendation. I was thinking of using UICorner as a replacement but was worried with the performance on low end devices. Guess I’ll try it out and see how it goes. Thanks!
1 Like