Version: 2023.1
언어: 한국어
Tilemap component reference
Tilemap Renderer component reference

Grid component reference

The Grid component is a guide which helps to align GameObjects, such as Tiles, based on a selected layout. The component transforms Grid cell positions to the corresponding local coordinates of the GameObject. The Transform component then converts these local coordinates to world space or global coordinates.

Grid 컴포넌트 설정 창
Grid 컴포넌트 설정 창
프로퍼티 기능
Cell Size 이 그리드의 셀 크기입니다.
Cell Gap Enter the size (in Unity units) of gaps between cells on this Grid. If a negative number with an absolute value higher than the Cell Size is entered, then Unity will automatically change the absolute value to match the Cell Size instead.
For example, if Cell Size is (1, 1, 0) and Cell Gap is set to (–2, –2, 0), the Editor will automatically change the Cell Gap values to (–1, –1, 0) instead.
Cell Layout 드롭다운 메뉴의 옵션을 선택하여 이 그리드 셀의 모양과 배열을 정의합니다.
Rectangle 셀이 직사각형입니다.
Hexagon 셀이 육각형입니다.
Isometric 셀이 아이소메트릭 레이아웃에 대해 마름모 모양입니다.
Isometric Z as Y Similar to the Isometric Grid layout, but Unity converts the Z position of cells to their local Y coordinate.
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로 재정렬합니다.

  • 2020.1에서 페이지 콘텐츠 및 스크린샷 업데이트됨 NewIn20201
  • 2017.2에서 타일맵 추가됨NewIn20172

Grid

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