ImageRectSize working incorrectly

I made a spritesheet containing 5 assets, each asset being 300x50 pixels in size, and the entire spritesheet being 1500x50 pixels.
spritesheet (5)
I made an ImageLabel with the size of 300x50 pixels, imported that spritesheet and set the ImageRectSize to 300, 50, and the ImageRectOffset to 0, 0. However, it doesn’t seem to fit properly?
image

Hi @SimuunSmok , I think we’ve seen a few issues like this before - could you try changing the math to assume the asset is 1024x34 to see if that makes it work?

Otherwise, if you can provide the asset ID we can check the encoding to see if something broke.

image
When I set the ImageRectSize to 1024, 34, the entire image fits inside, despite that not being the image’s original size. Here’s the Asset ID if necessary: rbxassetid://111440376781715

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