Generally, you can apply the 9-slice technique to a regular 2D Sprite. However, with UI Toolkit, you can apply the 9-slice technique to Texture, Render Texture, and SVG Vector images.
To apply the 9-slice technique to an image:
To apply the 9-slice technique to a selected image with USS:
다음 프로퍼티에 대해 USS, UXML, C# 파일에서 직접 슬라이스 값을 지정할 수도 있습니다.
-unity-slice-left
-unity-slice-right
-unity-slice-top
-unity-slice-bottom
-unity-slice-scale
중요: