Scale Image with Text?

  1. What do you want to achieve? I want to scale my ImageLabel with my TextLabel
  2. What is the issue? I don’t know if it’s possible, nor how to achieve it.
  3. What solutions have you tried so far? I’ve searched through the Forum and Google, but haven’t found a solution.

What I’ve seen done commonly in games, is they don’t actually try to scale the ImageLabel with the TextLabel, they simply just have the ImageLabel before the TextLabel.

image
(This Gift Icon is an ImageLabel and the selected next to it is a TextLabel)

I dislike the method of leaving the ImageLabel off to the side and not scaling with the TextLabel because it doesn’t look as nice as it would if it was scaled.

I’m mostly using this for Currency & Stat Display, so if I just used Emojis or some text, I could accomplish this, but I want to use Images, so not sure if this is possible at all.

I’m not sure if I understood this right, but you can try making the image a Child of the textlabel. And then changing the size of the image using Scale instead of Offset.

For Instance:

I’m not sure if this is what you wanted, but I hope I helped you solve it! :slight_smile:

Hey, thanks for the reply! I forgot I did try this and unfortunately, it does not accomplish what I want.

To further elaborate: I want the ImageLabel to basically act as the “$” symbol in the TextLabel.
image
The “$” will always scale with the number provided because it’s part of the TextLabel (of course!)

The method you suggested doesn’t have an effect on the Image scaling, unfortunately. Here are images of my results:
image

image
Unfortunately, no scaling!

1 Like

Could you not add the :gift: emoji before the text? Or does the image need to change?

Sorry, could you elaborate slightly? What do you mean by “before?”

The image would be static, but I would like the size & position to update with the Text.

Try Abbreviating the numbers to make them shorted that should fix the issue.

1 Like

This is something I considered, and was planning to go with if no viable solution was found, thanks!

Like, the text being

:gift: $1,234,567

Yes try that as I said abbreviate the numbers

1 Like