Version: Unity 6 (6000.0)
Language : English
Sorting group reference
9-slicing

Various image sizes without multiple assets

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.
Sorting group reference
9-slicing
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961