How to properly use 9-Slice Scaling

I am utterly lost when using 9-slice scaling. My main confusion is with the X0,X1,Y0,Y1. I thought it was like region 2 where you gave 2 points to make a box but anytime I put the number of pixels it went wak,

My image is 1632x732 and I put 180,180,590,1490 but it did this.

Not really understanding this

4 Likes

You’ll want it to be 180, 180, 1452, 552

It specifies the position of the lines if you were to split the image into nine:
image

X0 and X1 are both measured from the left edge, in pixels.
Y0 and Y1 are both measured from the top edge, in pixels.

If you want to have a 180x180 box in each corner, you need to have X0 and Y0 as 180 each, and X1 and Y1 as your full size minus 180:

  • X1 = 1632 - 180 = 1452
  • Y1 = 732 - 180 = 552

Note: Your image may be too large. I believe the max image size for Roblox decals/images is 1024 in each dimension. You may need to scale down and recalculate the numbers based on the new size.

5 Likes

That might be the issue I did what you said with a 250x250 image and it worked

3 Likes