UI ClipsDescendants Children Scaling with Frame

When I scale down the red version using the frame (with Clip Descendants enabled), the ImageLabel also scales down. I’m trying to create a hunger icon, but I want the size of the ImageLabel to remain unaffected when I scale down the frame.

Problem:

This is what I am trying to achieve:

Can you provide more details to the issue? I can’t seem to understand what are you trying to achieve.

Can you upscale your video please? The resolution makes it too hard to read.

When I scale down the red version using the frame (with Clip Descendants enabled), the ImageLabel also scales down. I’m trying to create a hunger icon, but I want the size of the ImageLabel to remain unaffected when I scale down the frame. Just like the one in this video:

Hmm, I really don’t know.

Have you tried writing the script shown in the video? It could just be different because of scaling through tweenSize in a script instead of the studio UI.

Use a CanvasGroup with a UICorner inside of it. Then, place a Frame inside of the CanvasGroup.

image

image
image