Version: Unity 6.6 Alpha (6000.6)
Language : English
Sorting Group component reference
9-slicing

Scaling sprites dynamically using 9-slicing

Set up spritesA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
such as walls or floors so they stretch or repeat when you resize them, and you don’t need to create multiple sprites for different sizes.

This technique is known as 9-slicing, because it involves dividing a sprite into nine sections.

Topic Description
9-slicing Learn about creating a sprite with nine sections, so the sections stretch or repeat in different ways to keep the sprite in proportion.
9-slice a sprite Divide a sprite into nine sections for 9-slicing, and add a collisionA collision occurs when the physics engine detects that the colliders of two GameObjects make contact or overlap, when at least one has a Rigidbody component and is in motion. More info
See in Glossary
shape.

Additional resources

Sorting Group component reference
9-slicing