일반 타일맵 외에도 Unity는 Hexagonal Point Top 및 Hexagonal Flat Top 타일맵을 모두 제공합니다. 육각형 타일은 테이블 위에서 즐기는 전략 게임에서 종종 사용됩니다. 이는 중심점과 가장자리까지의 거리가 일정하고 인접한 타일이 항상 가장자리를 공유하기 때문입니다. 따라서 거의 모든 종류의 대형 플레이 영역을 만드는 데 이상적이며, 플레이어가 이동과 위치 지정에 관한 전략적 결정을 내릴 수 있도록 해줍니다.
육각형 타일맵은 오프셋 좌표 시스템을 사용합니다. 오프셋 좌표 시스템에서는 셀을 육각형 그리드로 정렬할 때 한 줄 간격의 행이나 열을 셀 1/2만큼 오프셋됩니다. Hexagonal Point Top 타일맵의 경우, 한 줄 간격으로 행이 셀 1/2 너비만큼 오른쪽으로 오프셋됩니다. Hexagonal Flat Top 타일맵의 경우, 한 줄 간격으로 열이 셀 1/2 높이만큼 위쪽으로 오프셋됩니다.
예: Hexagonal Point Top 타일맵. 오프셋 행은 노란색으로 색칠되었습니다.
예: Hexagonal Flat Top Tilemap. 오프셋 열은 노란색으로 색칠되었습니다.
Hexagonal Tilemap 을 만들려면 일반 타일맵 생성(메뉴: GameObject > 2D Object)과 동일한 단계를 따릅니다. 단, 2D Object 메뉴에서 Hexagonal 옵션 중 하나를 선택해야 합니다.
사용 중인 육각형 타일의 방향에 맞는 Hexagonal Tilemap 옵션을 선택하십시오. 다음은 Hexagonal Point Top Tilemap 및 Hexagonal Flat Top Tilemap 의 예시입니다.
육각형 타일맵용 Tile Palette 를 만드는 경우 아래에 보이는 것처럼 Tile Palette 의 Grid 설정을 Hexagon 으로 지정하고 사용 중인 타일맵 및 타일과 일치하는 Hexagon Type 을 선택하십시오.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.