Tiles are Assets that are arranged on Tilemaps to construct a 2D environment. Each Tile references a selected Sprite, which is then rendered at the Tile’s location on the Tilemap Grid. Refer to Creating Tiles for more information about preparing and importing sprites for your Tiles, and the different methods for creating the Assets in the Editor.
프로퍼티 | 기능 |
---|---|
Preview | 선택한 타일의 시각적 미리보기를 표시합니다. |
Sprite | 이 타일에 렌더링될 스프라이트를 선택합니다. 오른쪽의 원형 아이콘을 클릭하여 오브젝트 피커 창을 열고 사용 가능한 스프라이트 에셋 중에서 선택하거나, 스프라이트를 이 상자로 직접 드래그할 수 있습니다. |
Color | 선택한 컬러로 이 타일의 스프라이트를 채색합니다. 흰색으로 설정하면 스프라이트가 색조 없이 렌더링됩니다. |
Collider Type | 타일을 위해 생성된 콜라이더의 모양을 정의합니다. |
None | 콜라이더가 생성되지 않습니다. |
Sprite | The Collider shape is generated based on the selected Sprite’s outline. |
Grid | The Collider shape is based on a cell of the Tilemap. The shape of a cell depends on the Cell Layout of the Tilemap. |
The Collider Type set in the Tile Asset’s properties affects the generation of Collider shapes for each Tile in the Tilemap. The component’s shape generation behavior corresponds to the Collider Types in the following ways:
콜라이더 타입 | 기능 |
---|---|
없음 | Tilemap Collider 2D 컴포넌트는 이 타일에 대한 콜라이더 모양을 생성하지 않습니다. |
Sprite | The Tilemap Collider 2D component generates a Collider shape based on the Sprite assigned to the Tile. The Collider shape is based on the Custom Physics Shape set for the Sprite. |
Grid | Tilemap Collider 2D 컴포넌트는 선택한 Grid 컴포넌트의 셀 레이아웃에 의해 결정되는 그리드 셀의 모양에 기반하여 콜라이더 모양을 생성합니다. |