그리드(Grid) 컴포넌트는 선택한 레이아웃에 따라 게임 오브젝트를 정렬하는 가이드입니다. 이 컴포넌트는 그리드 셀 포지션을 게임 오브젝트의 해당 로컬 좌표 로 변환합니다. 그러면 Transform 컴포넌트가 이러한 로컬 좌표를 월드 공간 또는 전역 좌표 로 전환합니다.
프로퍼티 | 기능 |
---|---|
Cell Size | 그리드의 셀 크기입니다. |
Cell Gap | 이 옵션을 사용하여 그리드 셀 사이의 간격 크기를 정의합니다. 이 옵션은 Cell Size 보다 낮은 음수 값으로 설정할 수 없습니다. 그럴 경우 Unity가 Cell Size 와 동일한 값으로 자동 재설정하고 음수 값으로 변경합니다. 예를 들어 Cell Size가 1, 1, 0이고 Cell Gap 을 –2, –2, 0으로 설정하려고 시도하면 Unity가 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로 변경합니다. |
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.