Game asset processing3 min read

Unity 9-Slice Corners Stretch? Compare Size and Scale

Use a marked panel to see how Sprite Renderer Size and Transform scale affect 9-sliced corners.

Unity 9-Slice Corners Stretch? Compare Size and Scale
A stretched game panel beside a 9-sliced panel with preserved corners
Concept illustration

A rounded Unity sprite becomes oval at the corners when widened. A sliced Sprite Renderer can preserve corners when you change its Size. Scaling the entire Transform still stretches the resulting geometry.

Make two copies of the same test panel

Import a 64 by 64 PNG with visible round corner marks. Set Mesh Type to Full Rect and set a 12-pixel border on each side in the Sprite Editor. Create two Sprite Renderers in Sliced mode. Keep both Transform scales at one and their parent uniformly scaled. Start with identical sizes larger than the combined borders.

Compare two ways of doubling the width

Double Size.x on A. Leave Size alone on B and double its Transform Scale.x. With A, the body widens while the corner marks retain their shape. B stretches the entire panel, corner geometry included. Use the same camera and compare the marks instead of judging only the outer dimensions.

If both sets of corners distort, check Draw Mode, the authored borders, parent scaling and atlas trim. Prepare the production art in the sprite sheet packer, then verify the settings in the receiving Unity project. This check uses Sprite Renderer. For a Unity UI Image, inspect that component's own sliced configuration.

Recommended tools

Ready to try "Unity 9-Slice Corners Stretch? Compare Size and Scale"?

Use our online tools to apply this tutorial to your indie game project right away.