UI obj scale with screen and not parent obj

I’d like to be able to scale my GUI object (image label) with the screen size and not with its parent. The reason I need it to have a parent is for the clip descendants property. Alternatively, if there’s a way to clip UIs without needing a parent object, that would also work. Or if you can fit images from image labels to the entire screen.

In more detail; I have an image covering the entire screen (size {1,0,1,0}) which is in a frame sized to the same scale. When I change the parent frame’s size, the image label/image also changes size.
For demonstration purposes, I made the child from scale to only half in the X/Y direction.
image
https://gyazo.com/89d2aba1e6c05c4205f3a95306c20570

What I’d like (without using offsets)
https://gyazo.com/9c79e61d0195985017ee7fe844d8985f

Now, I can achieve this with scripts, but it’s not always the smoothest, especially on lower-end devices. If there is absolutely no solution, I’ll handle it with local scripts.

Any and all help is appreciated!

There’s not really any solution for positional values, but you can always use the SizeConstraint property for one axis to make it partially smooth on one axis.

Scripts should be just as smooth as using a setting if you’re updating it before every frame is rendered. I can’t think of a way to do that without code.

1 Like

Sounds good. I’ll mark as solution should no one else have any ideas.

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