Version: 2020.3
타일맵
타일맵 렌더러

그리드

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 The size of a cell on this Grid.
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 Select an option from the drop-down menu to define the shape and arrangement of cells on this Grid.
Rectangle 셀이 직사각형입니다.
Hexagon 셀이 육각형입니다.
Isometric 셀이 아이소메트릭 레이아웃에 대해 마름모 모양입니다.
Isometric Z as Y Isometric Grid 레이아웃과 비슷하지만, Unity가 셀의 Z 포지션을 해당하는 로컬 Y 좌표로 전환합니다.
Cell Swizzle Select the order that Unity reorders the XYZ cell coordinates to for transform conversions. See the Wikipedia article on Swizzling for more details.
    XYZ Grid 컴포넌트가 기본 XYZ 셀 좌표를 사용합니다.
    XZY The Grid component reorders the XYZ coordinates to XZY.
    YXZ The Grid component reorders the XYZ coordinates to YXZ.
    YZX The Grid component reorders the XYZ coordinates to YZX.
    ZXY The Grid component reorders the XYZ coordinates to ZXY.
    ZYX The Grid component reorders the XYZ coordinates to ZYX.

  • Page content and screenshots updated for 2020.1 NewIn20201
  • 2017.2에서 타일맵 추가됨NewIn20172
타일맵
타일맵 렌더러