Version: 2022.2
언어: 한국어
Use the Sprite Editor
Resize polygons

Automatic slicing

Select the Slice tool and set its Type to Automatic to have Unity automatically slice a texture into multiple individual sprites by generating boundaries based on the surrounding transparency of each potential sprite. For example, you can use Automatic Slicing to isolate regularly spaced graphical images in a texture, such as individual Tiles in a tile sheet.

Sprite Editor 툴바에서 Slice 툴을 선택하고 TypeAutomatic으로 설정하면 다음의 에디터 패널이 나타납니다.

In this panel, you can set the default pivot for each sliced sprite with the Pivot and Custom Pivot options. If there are existing selections in the editor window before applying the Automatic slicing, select from the following options in the Method menu to choose how Unity handles the existing selections:

메서드 기능
Delete Existing 텍스처 내 SpriteRect를 모두 삭제하고 새로 슬라이스한 SpriteRect를 추가합니다.
Smart 새로 슬라이스한 SpriteRect가 하나 이상의 기존 SpriteRect와 중복되는 경우, 중복되는 원본 SpriteRect 중 가장 적합한 SpriteRect의 위치와 크기가 새로 슬라이스한 SpriteRect로 업데이트됩니다. 이후 새로 슬라이스한 SpriteRect는 폐기됩니다.
Safe 원본 SpriteRect를 모두 유지합니다. 기존의 SpriteRect와 중복되는 새로 슬라이스한 SpriteRect는 폐기됩니다.

Grid by Cell Size or Grid by Cell Count options are also available for the slicing type. This is very useful when the sprites have already been laid out in a regular pattern during creation:

The Pixel Size values determine the height and width of the tiles in pixels. If you chose grid by cell count, Column & Row determines the number of columns and rows used for slicing. You can also use the Offset values to shift the grid position from the upper left of the image and the Padding values to inset the SpriteRects slightly from the grid. The Keep Empty Rects option lets you keep SpriteRects that don’t have any pixels within them. This is useful for organising sprites created from the texture based on their position in the texture. The Pivot can be set with one of nine preset locations or a Custom Pivot location can be set.

The Isometric Grid option attempts to slice the sprite sheet which has its sprites laid out in alternating rows of half-height diamonds. When sliced, the resulting SpriteRects will have custom outlines and physics shapes corresponding to the half-height diamonds.

Is Alternate 옵션은 한 줄 간격으로 아이소메트릭 다이아몬드가 엇갈리는지를 결정합니다. 이 옵션이 설정되면 맨 위 줄의 첫 다이아몬드가 왼쪽으로 1/2픽셀 간격을 두고 시작하는 것으로 간주됩니다. 이 옵션이 설정되지 않으면 첫 다이아몬드가 간격 없이 왼쪽 면에서 바로 시작하는 것으로 간주됩니다.

Grid 옵션으로 슬라이싱하는 경우, 슬라이싱을 돕기 위해 SpriteRect의 프리뷰가 텍스처에 표시됩니다. 슬라이싱 설정이 변경되면 프리뷰도 이에 맞춰 업데이트됩니다. 프리뷰 SpriteRect의 픽셀 콘텐츠 또는 기존 SpriteRect 처리에 사용된 메서드에 따라 슬라이싱 후 표시된 프리뷰 SpriteRect가 생성되지 않을 수 있습니다.

이러한 Automatic Slicing 메서드에 의해 생성된 SpriteRect를 수동으로 편집하여 SpriteRect의 모양을 세부적으로 조정할 수 있습니다.

Use the Sprite Editor
Resize polygons
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961