Game dev
Saved & recent

9-slice

Also called: 9-patch, nine-slice scaling

Related terms: sliced sprite

A way to resize UI panels and buttons without distorting their borders. The image is cut into a 3 by 3 grid. The four corners never scale. The edges stretch along one direction. The center stretches in both.

One small image then serves every box size in the game.

Further reading
Roblox Creator Hub: UI 9-slice design
fixed corner source panel resized panel
The four corner pieces stay 25 × 25 units. The edge strips stretch in one direction and the center stretches in both.

View in the full Game dev collection