Reuse an image at various sizes without multiple assets.
Discover the 9-slicing method, set up your 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 for 9-slicing, then 9-slice them.
Topic | Description |
---|---|
9-slicing | Divide an image into nine sections for flexible resizing while maintaining proportions. |
Set up your sprite for 9-slicing | Set up the image in the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info See in Glossary and the sprite editor. |
9-slice your sprite | Ensure the Sprite and its ColliderAn invisible shape that is used to handle physical collisions for an object. A collider doesn’t need to be exactly the same shape as the object’s mesh - a rough approximation is often more efficient and indistinguishable in gameplay. More info See in Glossary adjust correctly when resized. |