How to properly consistently scale a frame within a 9-sliced image

Is it at all possible to have a frame within a 9-sliced image that will constantly stay only within the boundaries of the middle section? It looks like its properly scaled in studio but as soon as I go to emulate or I resize the screen, it gets completely messed up?

The frame selected is the one that I want to always be the max size of the center section of the sliced image.

1 Like

You’ll need to scale UI I’ve linked a good YT tutorial and for more just look them up on YT or the DevForum, best of luck John. :smiley:

3 Likes

It’s not that I’m using offset, I’m using scale and the ui aspect ratio constraint. It’s when the screen is resized, because the sides get scaled consistently, the frame is not always the proper size.

You’re probably thinking of the .SliceScale property that gui elements utilize.

If you want the image to stay consistent in terms of internal resolution, you’ll have to scale that property proportionally based on its absolute size.

1 Like

I wasn’t thinking about the slice scale, but the absolute size property based scaling did work.