Grid 컴포넌트는 선택한 레이아웃에 따라 Tile과 같은 게임 오브젝트를 정렬하는 데 도움이 되는 가이드입니다. 이 컴포넌트는 그리드 셀 위치를 게임 오브젝트의 해당 로컬 좌표로 변환합니다. 그런 다음 Transform 컴포넌트는 이 로컬 좌표를 월드 공간 또는 글로벌 좌표로 변환합니다.
프로퍼티 | 기능 |
---|---|
Cell Size | 이 그리드의 셀 크기입니다. |
Cell Gap | 이 그리드에서 셀 사이의 간격 크기(Unity 단위)를 입력합니다. Cell Size보다 절대값이 큰 음수를 입력하면 Unity는 절대값을 Cell Size에 맞게 자동으로 변경합니다. 예를 들어 Cell Size가 (1, 1, 0)이고 Cell Gap이 (–2, –2, 0)으로 설정된 경우 에디터는 Cell Gap 값을 (–1, –1, 0)으로 자동 변경합니다. |
Cell Layout | 드롭다운 메뉴의 옵션을 선택하여 이 그리드 셀의 모양과 배열을 정의합니다. |
Rectangle | 셀이 직사각형입니다. |
Hexagon | 셀이 육각형입니다. |
Isometric | 셀이 아이소메트릭 레이아웃에 대해 마름모 모양입니다. |
Isometric Z as Y | Isometric Grid 레이아웃과 비슷하지만, Unity는 셀의 Z 포지션을 해당하는 로컬 Y 좌표로 전환합니다. |
Cell Swizzle | Unity가 트랜스폼 전환을 위해 XYZ 셀 좌표를 재정렬하는 순서를 선택합니다. 자세한 내용은 배열 변경에 관한 Wikipedia 문서를 참조하십시오. |
XYZ | Grid 컴포넌트가 기본 XYZ 셀 좌표를 사용합니다. |
XZY | Grid 컴포넌트가 XYZ 셀 좌표의 배열을 XZY로 재정렬합니다. |
YXZ | Grid 컴포넌트가 XYZ 셀 좌표의 배열을 YXZ로 재정렬합니다. |
YZX | Grid 컴포넌트가 XYZ 셀 좌표의 배열을 YZX로 재정렬합니다. |
ZXY | Grid 컴포넌트가 XYZ 셀 좌표의 배열을 ZXY로 재정렬합니다. |
ZYX | Grid 컴포넌트가 XYZ 셀 좌표의 배열을 ZYX로 재정렬합니다. |
Grid
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.